Ad044 — `EDGE_CURVE.same_sense` boolean read uninitialised

§12.11 (sub-class: uninit / encoding)

P2 — spec deviation (no data loss)

crash adversarial

Sources

Description

STEP files where `same_sense` boolean is missing or illegally formatted leave a C++ `bool` uninitialised → non-deterministic edge direction.

Reproducer recipe

`EDGE_CURVE` with stripped or `.U.` `same_sense`.

Expected kernel behavior

Warn and accept: default to `.T.` and warn; never read an uninitialised bool. Must not crash on uninitialised read.

Notes

M; CWE-457. **See also**: Ls035. 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

Tier-3 assertions

Cross-references

Ls035

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad044: EDGE_CURVE.same_sense = .U. (unknown/uninitialised boolean); leaves C++ bool uninitialised → non-deterministic edge direction; GCC 4.9 regression Mantis 0029944; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad044'),'2;1');
5FILE_NAME('Ad044.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('',(0.0,0.0,0.0));
12#4=CARTESIAN_POINT('',(1.0,0.0,0.0));
13#5=DIRECTION('',(1.0,0.0,0.0));
14#6=VECTOR('',#5,1.0);
15#7=LINE('',#3,#6);
16#8=VERTEX_POINT('',#3);
17#9=VERTEX_POINT('',#4);
18#10=EDGE_CURVE('',#8,#9,#7,.U.);
19#11=EDGE_CURVE('missing_sense',#8,#9,#7,$);
20ENDSEC;
21END-ISO-10303-21;