step-examples/12-11-adversarial/Ad045.stp
Sources
- 03-occt-tests.md R083 (`bug24126`, `bug24249_*`, `bug24934`, `bug7570`)
- R038, R075, R078, R079
- 22-niche-forums.md Y017 (gmsh ≥4.12 fatal "Could not fix wire" regression)
Description
A healing pass over a real-world input shape throws an exception across the kernel ABI rather than producing a result, a warning, or an empty shape. Common trigger: an `EDGE_CURVE` whose `VERTEX_POINT`s do not lie on the edge's 3D `LINE` — a sub-confusion vertex/curve mismatch (e.g. ±1e-7 Y-offset from an X-axis `LINE`) — exposes a healing-path edge case. Reported failure modes include out-of-range index access on a wire-ordering pass, exceptions while evaluating an offset surface, healing reporting a negative face area, and fatal errors emerging from a wire-fix pass after a kernel upgrade.
Reproducer recipe
any of pinned test inputs; or wire whose `EDGE_CURVE` start/end disagree by approximately the kernel's confusion tolerance when traced against the host surface.
Expected kernel behavior
a healing pipeline run on any real-world input must terminate without throwing across the ABI. Kernels may report failure as a status flag, return an empty/partial shape, or downgrade to a warning; throwing an unhandled exception is not acceptable.
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. **OCC behavior**: silently accepts (no diagnostic, empty result); outside catalog's allowed set ({warn-and-proceed}). Kernel-bug witnessed: catalog wants a warning to surface; OCC accepts without any diagnostic.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'EDGE_CURVE')contains(b'1e-7') or contains(b'1.0E-7') or contains(b'1.0e-7')contains(b'EDGE_CURVE') and contains(b'LINE')
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/* Ad045: healing-pipeline exception: EDGE_CURVE VERTEX_POINTs displaced ±1e-7 in Y from the hosting X-axis LINE; sub-confusion mismatch triggers out-of-range index in wire-ordering pass; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad045'),'2;1'); 5FILE_NAME('Ad045.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=DIRECTION('',(1.0,0.0,0.0)); 13#5=VECTOR('',#4,1.0); 14#6=LINE('',#3,#5); 15#7=CARTESIAN_POINT('v_start_offset',(0.0,1.0E-7,0.0)); 16#8=CARTESIAN_POINT('v_end_offset',(1.0,-1.0E-7,0.0)); 17#9=VERTEX_POINT('v_start',#7); 18#10=VERTEX_POINT('v_end',#8); 19#11=EDGE_CURVE('sub_confusion_edge',#9,#10,#6,.T.); 20ENDSEC; 21END-ISO-10303-21;