Ad014 — Float literal with extreme exponent (`1E999999`) propagates as inf/NaN

§12.11 (sub-class: malformed-numeric / UAF)

silent-loss adversarial

Sources

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

Tier-3 assertions

Cross-references

Ls008

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;