1
0
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:
nbv
2018-11-20 16:34:27 +03:00
committed by apn
parent a2fb712bea
commit 0df4bbd689
24 changed files with 59 additions and 43 deletions

View File

@@ -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);