mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-11 01:58:22 +08:00
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.
13 lines
546 B
Plaintext
13 lines
546 B
Plaintext
puts "# ====================================================================="
|
|
puts "# 0033665: Data Exchange, Step Import - TransferRoots crashes for"
|
|
puts "# invalid STEP files."
|
|
puts "# ====================================================================="
|
|
|
|
# Step entity #18 is intentionally removed from test file,
|
|
# but it is still referenced by other step entities.
|
|
# Parsing and root transfer should not cause crash for such invalid file.
|
|
|
|
set aFilePath [locate_data_file bug33665.step]
|
|
testreadstep "$aFilePath" aShape
|
|
checkshape aShape
|