step-examples/12-11-adversarial/Ad014.stp
Sources
- 12-adversarial.md A014
- 11-translator-vendors.md (HOOPS Exchange fuzz-injected `text_rotation_angle = 1.79e308`)
Description
`strtod` returns inf/0 for very large/small exponents; downstream code converts to fixed-precision (tessellation grid index) → overflow. NaN propagates into unguarded `<`/`>` comparison, breaking sort invariants in an STL container → UAF.
Reproducer recipe
`#1=CARTESIAN_POINT('',(1.0E+999999,0.,0.));`
Expected kernel behavior
clamp magnitude; reject non-finite where geometry expects finite.
Notes
M; HOOPS Exchange explicitly flags this as fuzz-discoverable, not from real CAD output. **See also**: Ls008. **OCC behavior**: silently accepts (no diagnostic, empty result); outside catalog's allowed set ({reject}). Kernel-bug witnessed: receivers must reject this fixture per the catalog's stated invariant.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E+999999')count(b'1.0E+999999') + count(b'1.0E-999999') >= 1
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/* Ad014: float literals with extreme exponents (1.0E+999999, 1.0E-999999); strtod returns +inf or 0; NaN poisons STL sort comparators â UAF; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad014'),'2;1'); 5FILE_NAME('Ad014.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=CARTESIAN_POINT('',(1.0E+999999,0.,0.)); 12#4=CARTESIAN_POINT('',(1.0E-999999,0.,0.)); 13#5=CARTESIAN_POINT('',(1.79E+308,0.,0.)); 14#6=AXIS2_PLACEMENT_3D('',#1,$,$); 15#7=CIRCLE('',#6,1.0E+999999); 16ENDSEC; 17END-ISO-10303-21;