step-examples/12-11-adversarial/Ad086.stp
Sources
- 04-occt-translation.md Q078
- 03-occt-tests.md R073 (`parse.rules` ignores `OSD_Exception_ACCESS_VIOLATION`, `Software error`, `Syntax error`, `Transfer error`)
Description
A translator catches all exceptions at the per-entity boundary and downgrades them uniformly to a "transfer failed" status, hiding memory-corruption-class faults. Common attack shape: a single file combining several type-confusion / overflow attacks; `AXIS2_PLACEMENT_3D` whose location slot points at a `PRODUCT_DEFINITION` (`#7`) instead of a `CARTESIAN_POINT`; a `CARTESIAN_POINT` whose coordinates list has length 2 (arity mismatch); another point with coordinate `1.0E+999` (numeric overflow); a `LINE` whose direction `VECTOR` references a `CARTESIAN_POINT` (`#15`) where `DIRECTION` is required. CI test infrastructure documents these as "expected to be tolerated", masking actual exploitable conditions.
Reproducer recipe
any input that triggers an access-violation in translator.
Expected kernel behavior
Reject with clear diagnostic: distinguish recoverable diagnostics (syntax error, missing reference) from memory-corruption-class faults; the latter must surface as fatal kernel bugs with a clear diagnostic, not silent skips. Must not silently mask crashes.
Notes
**See also**: Ad043. Provenance tier: runtime-only; bytes alone cannot demonstrate this defect; the catalogued symptom is a translator-time access-violation being silently demoted to "transfer failed" status. The static fixture encodes only the trigger (type-confusion / overflow attributes); whether the kernel produces an access violation, swallows it, and what status it reports are all multi-pass runtime behaviors. A behavioral test capturing the kernel's diagnostic stream is the appropriate venue.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'ISO-10303-21')contains(b'END-ISO-10303-21')
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/* Ad086: translator silently masks segfault-class faults as 'transfer failed'; AXIS2_PLACEMENT_3D.location â PRODUCT_DEFINITION (type confusion); CARTESIAN_POINT with 2-coord arity mismatch; CARTESIAN_POINT with coordinate 1.0E+999 (overflow); LINE direction VECTOR references CARTESIAN_POINT where DIRECTION required; Q078; R073; See also Ad043; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad086'),'2;1'); 5FILE_NAME('Ad086.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=GEOMETRIC_CURVE_SET('',(#1)); 12#3=CARTESIAN_POINT('arity_mismatch',(1.0,2.0)); 13#4=CARTESIAN_POINT('overflow_coord',(1.0E+999,0.0,0.0)); 14#5=AXIS2_PLACEMENT_3D('type_confused_loc',#9054,$,$); 15#6=CARTESIAN_POINT('wrong_type_for_dir',(1.0,0.0,0.0)); 16#7=VECTOR('bad_dir_ref',#6,1.0); 17#8=LINE('type_confused_line',#1,#7); 18#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 19#9051=PRODUCT('Ad086','Ad086','',(#9050)); 20#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 21#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 22#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 23#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 24#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 25#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 26#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 27#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 28#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 29#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060); 30#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 31ENDSEC; 32END-ISO-10303-21;