step-examples/12-11-adversarial/Ad094.stp
Sources
- OCCT MANTIS#0033312
- OCCT MANTIS#0023938
- OCCT MANTIS#0024517 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A `CONNECTED_FACE_SET` or `OPEN_SHELL` entity contains an empty face list (`(())`). The shell-translator iterates the face list expecting at least one element, dereferences a null pointer on the first iteration.
Reproducer recipe
STEP file with `OPEN_SHELL('',())` (zero-face shell).
Expected kernel behavior
empty face list is a malformed shell; diagnose and skip; never crash.
Notes
**See also**: Tsh023, Tsh024. **OCC behavior**: silently accepts (no diagnostic, empty result); outside catalog's allowed set ({reject}). Kernel-bug witnessed: receivers must reject this fixture per the catalog's stated invariant.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Closure intent
ambiguous — the open shell is an incidental scaffold for a non-closure-related test.
Byte assertions
matches(rb"OPEN_SHELL\('[^']*',\(\)\)")matches(rb'\(\)\)')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ad094: OPEN_SHELL with empty face list (()) causes null dereference in shell-translator; translator iterates face list expecting >= 1 element; first-iteration null dereference produces OOB read, junk attributes, or crash; must diagnose malformed shell and skip without crashing; OCCT MANTIS#0033312, #0023938, #0024517; See also Tsh023, Tsh024; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad094'),'2;1'); 5FILE_NAME('Ad094.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#3=OPEN_SHELL('zero_face_shell',()); 12#4=CLOSED_SHELL('zero_face_closed',()); 13#5=CONNECTED_FACE_SET('zero_face_cfs',()); 14ENDSEC; 15END-ISO-10303-21;