Ad050 — Empty `EDGE_LOOP` / empty wire / empty entity iterator crashes reader

§12.11 (sub-class: schema-validation / null-deref)

crash adversarial

Sources

Description

Schema requires non-empty list; producer emits `()`. Reader's iterator-step crashes on empty.

Reproducer recipe

`#1=EDGE_LOOP('',());` referenced from `FACE_BOUND`.

Expected kernel behavior

defensive iterator guard; reject malformed entity; continue translation.

Notes

**See also**: Ad043. **OCC behavior**: crashes with signal(11) (SIGSEGV) during transfer; outside catalog's allowed set ({reject}). Kernel-bug witnessed: receivers must reject this fixture per the catalog's stated invariant.

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Byte assertions

Cross-references

Ad043

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad050: empty EDGE_LOOP: EDGE_LOOP('',()) with zero oriented edges; schema requires non-empty list; reader iterator-step crashes on empty; FACE_BOUND referencing the empty loop exposes the null-deref; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad050'),'2;1');
5FILE_NAME('Ad050.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=EDGE_LOOP('',());
12#4=FACE_BOUND(#3,.T.);
13#5=EDGE_LOOP('empty_wire',());
14#6=FACE_OUTER_BOUND(#5,.T.);
15#7=TESSELLATED_SHELL('',(),$);
16ENDSEC;
17END-ISO-10303-21;