step-examples/12-1a-encoding/Le053.stp
Sources
- Q065/StepData_StepReaderData.cxx:218-272
- N005/ISO 10303-21 Ed.3 §6.4.3.4
Description
`\X2\.\X0\` directives are not re-entrant. Opening a fresh `\X2\` while another is still active is malformed; a naive scanner may merge the two hex runs or lose the inner content.
Reproducer recipe
`'name=\X2\30A2\X2\30A4\X0\'` — second `\X2\` opens before the first closes.
Expected kernel behavior
emit `E_BAD_X2_DIRECTIVE` (nested); reject the string without crashing.
Notes
**See also**: Le005, Le051, Le052. Synonyms: "nested X2 directive in STEP", "X2 opened twice without closing", "re-entrant X2 escape", "X2 inside X2 garbles content", "consecutive X2 without X0". Provenance tier: bytes-only — defect is context/metadata OCC does not read at BRep load; mutation-test verified oracle-invisible (2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'\\X2\\30A2\\X2\\30A4\\X0\\')count(b'\\X2\\') >= 2
Tier-3 assertions
shape_null == True
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/* Le053: \X2\...\X0\ (UCS-2) escape: nested \X2\ opened without closing the prior; ISO 10303-21 Ed.3 §6.4.3.4: \X2\...\X0\ directives are not re-entrant; opening a fresh \X2\ while another is still active is malformed; a naive scanner may merge the two hex runs or lose the inner content; defect string: 'name=\X2\30A2\X2\30A4\X0\' â second \X2\ opens before first closes; receiver must emit E_BAD_X2_DIRECTIVE (nested); reject the string without crashing; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le053'),'2;1'); 5FILE_NAME('Le053.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#8998=PERSON('name=\X2\30A2\X2\30A4\X0\','nested-x2-no-x0-between',''); 12#8999=PERSON('name=\X2\30A2\X0\mid\X2\30A4\X0\','separate-x2-blocks-ok',''); 13 14ENDSEC; 15END-ISO-10303-21;