]> OCCT Git - occt.git/commit
0033487: Data Exchange, Step Import - Unresolved reference crashes
authordkulikov <dkulikov@opencascade.com>
Mon, 23 Sep 2024 13:59:28 +0000 (13:59 +0000)
committerdkulikov <dkulikov@opencascade.com>
Mon, 23 Sep 2024 13:59:28 +0000 (13:59 +0000)
commit2aa164a121ed258d83913c94d884a70a39c4e902
treee6982e0d1088166f8d0b27ae05f0e6fa4d572777
parent495a6a642dbfcebd866a6d6f93b4d9c4efa5b415
0033487: Data Exchange, Step Import - Unresolved reference crashes

Fixed crash in STEPConstruct_Styles::GetColors() due to nullptr
dereferencing when source step file has missing
FILL_AREA_STYLE_COLOUR entities.

STEPConstruct_Styles::GetColors () is refactored.

Test bug33487 ia added to check that crash doesn't occur.
src/STEPConstruct/STEPConstruct_Styles.cxx
src/STEPConstruct/STEPConstruct_Styles.hxx
tests/bugs/step/bug33487 [new file with mode: 0644]