1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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

@@ -558,7 +558,7 @@ Standard_Boolean STEPConstruct_Styles::GetColors (const Handle(StepVisual_Styled
// parse on styles
for(Standard_Integer j=1; j<=style->NbStyles(); j++ ) {
Handle(StepVisual_PresentationStyleAssignment) PSA = style->StylesValue ( j );
if(PSA.IsNull()) continue;
if(PSA.IsNull() || PSA->Styles().IsNull()) continue;
IsComponent = Standard_True;
for(Standard_Integer k=1; k<=PSA->NbStyles(); k++ ) {