Ad002 — Stack overflow via deeply nested aggregate parentheses

§12.11 (sub-class: stack-overflow / DoS)

P2 — spec deviation (no data loss)

adversarial

Sources

Description

Recursive descent over `LIST/SET/BAG` aggregates without depth bound; thousands of nested `(((..)))`.

Reproducer recipe

`#1=FOO(((((…10⁴ levels…0…)))));`

Expected kernel behavior

Reject with diagnostic: enforce depth ceiling (e.g. 64); emit `E_AGGREGATE_TOO_DEEP`. Must not crash via stack overflow.

Notes

M; trivial DoS even before semantic phase. **See also**: Pf012.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Pf012

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad002: deeply nested aggregate parentheses; ~120 levels of (((..))) on FOO entity; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad002'),'2;1');
5FILE_NAME('Ad002.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=FOO(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
12ENDSEC;
13END-ISO-10303-21;