step-examples/12-11-adversarial/Ad052.stp
Sources
- 08-occt-gitlog.md G032 (Mantis 0031711)
Description
External-file-assignment whose target path resolves to the main file under translation; reader loops forever.
Reproducer recipe
`APPLIED_EXTERNAL_IDENTIFICATION_ASSIGNMENT` to same `.step` file path.
Expected kernel behavior
Heal and accept: detect identity by canonical path; skip self-reference. Must not infinite loop.
Notes
**See also**: Ad004, A012, M060. Validation observed: silent-empty rather than the cited crash. The structural attack pattern (e.g., billion-laughs / cyclic-reference / very-large-string) is demonstrated; production-scale exploitation requires inflating the size factor as described. Kernel-mishandling-by-silent-acceptance is itself a defect signal at fixture scale. Provenance tier: runtime-only (Q5 reclassification 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'APPLIED_EXTERNAL_IDENTIFICATION_ASSIGNMENT')contains(b'EXTERNAL') or contains(b'IDENTIFICATION_ASSIGNMENT')
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/* Ad052: self-referential external file assignment: APPLIED_EXTERNAL_IDENTIFICATION_ASSIGNMENT whose target path resolves to the main file under translation; reader loops forever on self-ref; Mantis 0031711; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad052'),'2;1'); 5FILE_NAME('Ad052.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=EXTERNAL_SOURCE(('Ad052.step')); 12#4=EXTERNAL_IDENTIFICATION_ASSIGNMENT('self','self-referential file',#3); 13#5=APPLIED_EXTERNAL_IDENTIFICATION_ASSIGNMENT(#4,(#1)); 14#6=EXTERNAL_SOURCE(('./Ad052.step')); 15#7=EXTERNAL_IDENTIFICATION_ASSIGNMENT('self2','relative self-ref',#6); 16#8=APPLIED_EXTERNAL_IDENTIFICATION_ASSIGNMENT(#7,(#1)); 17ENDSEC; 18END-ISO-10303-21;