]> OCCT Git - occt.git/commit
0033665: Data Exchange, Step Import - TransferRoots crashes for invalid STEP files
authordkulikov <dkulikov@opencascade.com>
Sun, 22 Sep 2024 12:33:29 +0000 (12:33 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Sun, 22 Sep 2024 12:46:54 +0000 (12:46 +0000)
commite5998666eedbb6fd968b8d4a59c21575307c3fd7
tree8e485dd5f6afc1dd632fe41f82c9b1cbb1686ec4
parent8082b955bd8d214620b71b949a5dc9857c2f45a0
0033665: Data Exchange, Step Import - TransferRoots crashes for invalid STEP files

Fixed exception in RWStepShape_RWEdgeCurve::Check() thrown when trying
    to access step entity in Interface_EntityIterator with zero entities.
Fixed a crash in StepToTopoDS_TranslateFace::Init() caused by
    dereferencing nullptr.
RWStepShape_RWEdgeCurve and RWStepShape_RWEdgeCurve are refactored.
Test bug33665 is added to check the fixed behavior.
src/RWStepShape/RWStepShape_RWEdgeCurve.cxx
src/RWStepShape/RWStepShape_RWEdgeCurve.hxx
src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx
src/StepToTopoDS/StepToTopoDS_TranslateFace.hxx
tests/bugs/step/bug33665 [new file with mode: 0644]