Ad140 — ADVANCED_FACE with a null (`$`) element in its mandatory bounds list → signal(11)

§12.11 adversarial (sub-class: null element in mandatory aggregate → crash)

P1 — silent data loss

crash adversarial

Sources

Description

An `ADVANCED_FACE` supplies `($)` for its mandatory `bounds` list — a non-empty aggregate whose single element is the null token `$` rather than a `FACE_OUTER_BOUND`/`FACE_BOUND` reference. When the reader transfers the face and iterates its bounds, it dereferences the null element without checking that it resolved. Sibling of Ad139: that nulls a mandatory *scalar* reference (`VECTOR.orientation`); this nulls an *element* inside a mandatory *aggregate* — a distinct code path and a distinct structural shape.

Reproducer recipe

a `MANIFOLD_SOLID_BREP` whose `CLOSED_SHELL` holds one face emitted as `ADVANCED_FACE('',($),#surf,.T.)` — `bounds` is `($)`, a single null element, on an otherwise-valid `CONICAL_SURFACE`.

Expected kernel behavior

reject a null element in a mandatory aggregate (or drop the face) at parse/transfer time; never iterate into and dereference a null `bounds` element.

Notes

RUNTIME-VERIFIED (2026-08-13, OCP/OCCT 7.8.1): both heal modes SIGSEGV (8/8 deterministic) and gmsh crashes too — `occt=signal(11)/signal(11)`. `part21_strict` **accepts** (`$` is a legal null token even inside an aggregate; 0 unresolved refs) and the structural linter reports **ok** — `($)` is a *non-empty* aggregate, so the EMPTY_AGGREGATE check (which fires only on `()`) does not catch it. So, like Ad139, this crash is unrefusable pre-transfer, and the candidate sixth structural check must cover BOTH a null scalar-reference slot (Ad139) and a null element in a mandatory aggregate (this). Found by systematic null-slot fuzzing: of the 25 distinct entity types in the M202 cone, exactly two crash OCCT on a nulled first reference — `VECTOR` (Ad139) and `ADVANCED_FACE.bounds` (this); the other 23 are handled gracefully (rc=0), so the class is narrow, not a broad "null any reference" crash. Synonyms: "null bound in ADVANCED_FACE", "null element in bounds list", "$ in face bounds aggregate", "null aggregate element crash". Provenance tier: bytes-sufficient.

Expected validation

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

Byte assertions

Cross-references

Ad139, M202

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad140: an ADVANCED_FACE supplies ($) for its mandatory bounds list: a non-empty aggregate whose single element is the null token $ instead of a FACE_OUTER_BOUND reference; when the reader transfers the face and iterates its bounds it dereferences the null element without checking it resolved; distinct from Ad139 (null in a scalar reference slot) — this is a null element inside a mandatory aggregate, a different code path; $ inside an aggregate is not an empty aggregate so EMPTY_AGGREGATE does not catch it and part21 accepts $ as a null token; expected robust behavior: reject a null aggregate element or drop the face, never dereference it; synonyms: null bound in ADVANCED_FACE, null element in bounds list, $ in face_outer_bound list, null aggregate element crash; the null bounds element is the defect carrier */
3HEADER;
4FILE_DESCRIPTION(('Ad140'),'2;1');
5FILE_NAME('Ad140.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=CONICAL_SURFACE('',#4,1.0,0.4);
15#6=ADVANCED_FACE('',($),#5,.T.);
16#7=CLOSED_SHELL('',(#6));
17#8=MANIFOLD_SOLID_BREP('',#7);
18#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
19#9051=PRODUCT('Ad140','Ad140','',(#9050));
20#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
21#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
22#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
23#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
24#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
25#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
26#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
27#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
28#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
29#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#8),#9060);
30#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
31ENDSEC;
32END-ISO-10303-21;