Le043 — `\X4\` with a valid supplementary-plane code point followed by a short trailing hex run

§12.1a encoding/strings (sub-class: UCS-4)

silent-loss spec-violation encoding

Sources

Description

`\X4\.\X0\` wraps a sequence of 8-hex-digit groups, each encoding one UCS-4 (32-bit) scalar. A producer concatenating variable-length output may emit a hex run not divisible by 8 (e.g. 4 or 7 digits), which is malformed. Distinct from Le006 in that the *valid* leading group is a supplementary-plane scalar (U+1F600 Grinning Face) and only the trailing group is short, so a tolerant parser may accept the first character and silently drop the second.

Reproducer recipe

`PRODUCT.name='mix=\X4\0001F60000041\X0\'` — 8 hex digits (U+1F600, valid SMP) followed by 4 hex digits (short, illegal).

Expected kernel behavior

reject the whole `\X4\.\X0\` block as malformed, or reject only the trailing short group with a diagnostic; never silently truncate.

Notes

**See also**: Le006. **OCC behavior**: silently accepts the malformed `\X4\.\X0\` block and either truncates the trailing short group or interprets it incorrectly; kernel mishandling; the catalog above forbids silent truncation. Synonyms: "X4 with valid plus short trailing run", "supplementary char then partial X4 group", "X4 mixed valid and malformed", "X4 valid leader with truncated tail", "X4 followed by short hex run". 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

Tier-3 assertions

Cross-references

Le006

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Le043: \X4\ with a valid supplementary-plane code point followed by a short trailing hex run; ISO 10303-21 Ed.3 §6.4.3: \X4\HHHHHHHH...\X0\ requires exactly 8 hex digits per 32-bit UCS-4 code point; a total hex run not divisible by 8 is malformed; defect string: 'mix=\X4\0001F60000041\X0\' — the 12-digit hex run contains a valid 8-digit group (0001F600 = U+1F600, Grinning Face emoji) immediately followed by a short 4-digit group (0041 = 'A') that does not form a full 8-digit UCS-4 unit; distinct from Le006: Le043 has a valid leading group so a tolerant parser may decode the first character and silently drop the second, hiding the malformation; receiver must reject the whole \X4\...\X0\ block as malformed, or reject only the trailing short group with a diagnostic; never silently truncate the trailing hex digits; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le043'),'2;1');
5FILE_NAME('Le043.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('mix=\X4\0001F60000041\X0\','x4-valid-smp-plus-short-tail','');
12#8999=PERSON('grin=\X4\0001F6000001F601\X0\','x4-two-valid-smp-groups','');
13
14ENDSEC;
15END-ISO-10303-21;