step-examples/12-11-adversarial/Ad080.stp
Sources
- 12-adversarial.md A025
Description
Two `DATA;…ENDSEC;` sections appear in one file (illegal in Ed.2), often with concatenated section markers. Common attack shape: both DATA sections reuse the identical entity-id range `#1`.`#N` so any reader that builds a single `#`-keyed map silently overwrites the first section's entities with the second. Greedy regex parsers may match across the section boundary.
Reproducer recipe
`…ENDSEC;DATA;…ENDSEC;DATA;…ENDSEC;`
Expected kernel behavior
reject second `DATA` section unless Ed.3 multi-section; one DATA per file otherwise.
Notes
**See also**: Lh024, Ls024. **OCC behavior**: emits a diagnostic but produces no shape (warn-and-proceed by oracle, but result is empty); 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
Byte assertions
count(b'DATA;') >= 2 or count(b'ENDSEC;DATA;') >= 1count(b'ENDSEC;') >= 2 or count(b'DATA;') >= 2
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Ad080: two DATA sections in one file: both sections reuse entity-id range #1..#N; readers with a single #-keyed map silently overwrite first section; greedy regex parsers may match across ENDSEC; boundary; illegal per ISO 10303-21 Ed.2; See also Lh024, Ls024; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad080'),'2;1'); 5FILE_NAME('Ad080.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)); 11ENDSEC; 12DATA; 13#1=CARTESIAN_POINT('shadow_point',(9.,9.,9.)); 14#2=GEOMETRIC_CURVE_SET('shadow_gcs',(#1)); 15ENDSEC; 16END-ISO-10303-21;