step-examples/12-11-adversarial/Ad083.stp
Sources
- 18-other-issues.md I021 (CadQuery #1962, KiCad), I077
- 03-occt-tests.md R057
Description
Multiple child `PRODUCT` instances share the same `name` attribute across distinct `PRODUCT_DEFINITION` chains — for example three boards each named 'R0402' — and only the `NEXT_ASSEMBLY_USAGE_OCCURRENCE` `id` slot ('R1', 'R2', 'R3') disambiguates them. KiCad-style sources reuse one PRODUCT for many NAUOs; receiver dictionaries keyed on `name` instead of NAUO id collide and drop siblings.
Reproducer recipe
`cq.Assembly.load("mobo-3D.step")`.
Expected kernel behavior
Heal and accept: treat IDs (entity #) as primary keys; disambiguate names; do not fail on duplicates.
Notes
**See also**: Ad043. 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.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE') >= 3count(b"'R") >= 3 or count_entity_def(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE') >= 3
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/* Ad083: multiple PRODUCT instances share the same name 'R0402'; only NEXT_ASSEMBLY_USAGE_OCCURRENCE id ('R1','R2','R3') disambiguates; receivers keyed on name instead of NAUO id collide and drop siblings; KiCad/CadQuery assembly flat-load label collision; CadQuery #1962; I021; I077; R057; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad083'),'2;1'); 5FILE_NAME('Ad083.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=PRODUCT('Assembly','Assembly','',()); 12#4=PRODUCT_DEFINITION_FORMATION('','',#3); 13#5=PRODUCT_DEFINITION('','',#4,#9003); 14#6=PRODUCT('R0402','R0402','',()); 15#7=PRODUCT_DEFINITION_FORMATION('','',#6); 16#8=PRODUCT_DEFINITION('','',#7,#9003); 17#9=NEXT_ASSEMBLY_USAGE_OCCURRENCE('R1','','',#5,#8,$); 18#10=PRODUCT('R0402','R0402','',()); 19#11=PRODUCT_DEFINITION_FORMATION('','',#10); 20#12=PRODUCT_DEFINITION('','',#11,#9003); 21#13=NEXT_ASSEMBLY_USAGE_OCCURRENCE('R2','','',#5,#12,$); 22#14=PRODUCT('R0402','R0402','',()); 23#15=PRODUCT_DEFINITION_FORMATION('','',#14); 24#16=PRODUCT_DEFINITION('','',#15,#9003); 25#17=NEXT_ASSEMBLY_USAGE_OCCURRENCE('R3','','',#5,#16,$); 26ENDSEC; 27END-ISO-10303-21;