Ad052 — STEP file referencing itself as external file (infinite loop)

§12.11 (sub-class: cyclic-reference / DoS)

P2 — spec deviation (no data loss)

crash adversarial

Sources

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

Tier-3 assertions

Cross-references

Ad004, A012, M060

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;