Ad090 — Lower-case `End-ISO-10303-21` token rejected

§12.11 adversarial

P2 — spec deviation (no data loss)

silent-loss adversarial

Sources

Description

A STEP file ends with `end-iso-10303-21;` (lower-case) rather than the spec's `END-ISO-10303-21;`. ISO 10303-21 keywords are conventionally upper-case, but tolerant readers should accept case-folded forms. Strict reader rejects the entire file at the trailing token.

Reproducer recipe

Otherwise-valid STEP file, last line is `end-iso-10303-21;` (lower-case).

Expected kernel behavior

Heal and accept: keywords are case-insensitive in ISO 10303-21; accept any case for `ISO-10303-21`, `HEADER`, `DATA`, `ENDSEC`, `END-ISO-10303-21`. Do not reject lower-case forms.

Notes

Cross-oracle: pure-Python Part-21 validator rejects (reject(E_CLOSE_CASE)); OCCT silently accepts (load is `empty`). OCC auto-heals a spec-level violation.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad090: lower-case end-iso-10303-21; token at end of file; ISO 10303-21 keywords should be case-insensitive; strict reader rejects entire file at trailing lower-case token; cross-oracle: pure-Python Part-21 validator rejects (E_CLOSE_CASE); OCCT silently accepts with no diagnostic; OCCT MANTIS#0031000; See also Le027; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Ad090'),'2;1');
5FILE_NAME('Ad090.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));
11ENDSEC;
12end-iso-10303-21;