mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0030380: Exception while reading Step-file
Incorrect initialization of array (when upper bound is less than lower bound) has been avoided in some places.
This commit is contained in:
@@ -456,7 +456,10 @@ Standard_Boolean StepData_StepReaderData::ReadSubList(const Standard_Integer num
|
||||
const Standard_Integer /* lenmax */) const
|
||||
{
|
||||
numsub = SubListNumber(num, nump, Standard_False);
|
||||
if (numsub > 0) return Standard_True;
|
||||
if (numsub > 0)
|
||||
{
|
||||
return (NbParams(numsub) > 0);
|
||||
}
|
||||
// Si optionel indefini, on passe l eponge
|
||||
numsub = 0;
|
||||
Standard_Boolean isvoid = (Param(num, nump).ParamType() == Interface_ParamVoid);
|
||||
|
Reference in New Issue
Block a user