step-examples/12-11-adversarial/Ad081.stp
Sources
- 18-other-issues.md I044 (pythonocc-core #702)
Description
The file parses successfully but the subsequent root-transfer pass dereferences an out-of-range index and aborts. Common trigger shape: a `SHAPE_REPRESENTATION` whose `items` list is empty (`()`) combined with a dangling product chain; a `PRODUCT_DEFINITION_SHAPE` with no `SHAPE_DEFINITION_REPRESENTATION` linking it back to any representation. Producer signature: STEP/IGES emitted by a particular Rhino-6 build, which exposes the receiver's missing bound-check.
Reproducer recipe
any Rhino-6-emitted STEP loaded through the STEP reader's root-transfer entrypoint.
Expected kernel behavior
bound-check the index, fail recoverably with a diagnostic, never abort the process across the API.
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
matches(rb"SHAPE_REPRESENTATION\([^;]*,\(\),")matches(rb',\(\),')
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/* Ad081: empty SHAPE_REPRESENTATION.items list () plus dangling PRODUCT_DEFINITION_SHAPE with no SHAPE_DEFINITION_REPRESENTATION back-link; root-transfer dereferences out-of-range index and aborts; Rhino-6 emit signature; pythonocc-core #702; See also Ad043; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad081'),'2;1'); 5FILE_NAME('Ad081.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=AXIS2_PLACEMENT_3D('origin_ctx',#1,$,$); 12#4=SHAPE_REPRESENTATION('empty_items_rep',(),(#3)); 13#5=PRODUCT('dangling_part','dangling_part','',()); 14#6=PRODUCT_DEFINITION_FORMATION('','',#5); 15#7=PRODUCT_DEFINITION('','',#6,#9003); 16#8=PRODUCT_DEFINITION_SHAPE('','',#7); 17ENDSEC; 18END-ISO-10303-21;