Ad094 — Shell translator dereferences null on empty face list

§12.11 adversarial

silent-loss adversarial

Sources

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

Tier-3 assertions

Cross-references

Tsh023, Tsh024

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;