step-examples/12-11-adversarial/Ad002.stp
Sources
- 12-adversarial.md A002
- 03-occt-tests.md R084 (IGES round-trip)
- 20-general-forums.md J020
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
max_paren_depth >= 50count(b'((((') >= 5
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/* 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;