step-examples/12-1a-encoding/Le006.stp
Sources
- Q065/StepData_StepReaderData.cxx:218-272
- N006/ISO 10303-21 Ed.3 §6.4.3.4
Description
`\X4\` requires hex digit count divisible by eight (one 32-bit code point per group). Tools emit 4-digit or 6-digit groups, embed UTF-16 surrogate halves directly (illegal as UCS-4 code points), or omit `\X0\`.
Reproducer recipe
`'pi=\X4\03C0\X0\'` (only 4 digits); `'oops=\X4\0000D83D\X0\'` (lone surrogate); `'\X4\00110000\X0\'` (above U+10FFFF).
Expected kernel behavior
reject; tolerant readers should at minimum flag surrogate code points (U+D800.U+DFFF) and values above U+10FFFF as malformed.
Notes
Synonyms: "X4 UCS-4 escape malformed", "supplementary plane character broken", "lone surrogate in X4 escape", "code point above U+10FFFF in STEP", "X4 hex run not divisible by 8". Provenance tier: bytes-only (Q5 full-corpus 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'\\X4\\03C0\\X0\\')contains(b'\\X4\\0000D83D\\X0\\')contains(b'\\X4\\00110000\\X0\\')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Le006: \X4\ UCS-4 escape with hex run not divisible by 8 or containing illegal code points; \X4\HHHHHHHHâ¦\X0\ requires 8 hex digits per 32-bit code point; defects: 4-digit group \X4\03C0\X0\ (pi symbol truncated), lone surrogate \X4\0000D83D\X0\ (U+D83D â illegal in UCS-4), above U+10FFFF: \X4\00110000\X0\ (U+110000 out-of-range); receiver must reject; tolerant readers must flag surrogates (U+D800..U+DFFF) and values above U+10FFFF as malformed; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le006'),'2;1'); 5FILE_NAME('Le006.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#8997=PERSON('pi=\X4\03C0\X0\','four-digit-ucs4-group',''); 12#8998=PERSON('oops=\X4\0000D83D\X0\','lone-surrogate-in-ucs4',''); 13#8999=PERSON('\X4\00110000\X0\','above-unicode-maximum',''); 14 15ENDSEC; 16END-ISO-10303-21;