step-examples/12-1c-syntax/Ls024.stp
Sources
- A025, N002 (notes)
Description
Material appearing after `END-ISO-10303-21;`; appended log lines, multiple concatenated files, or stray `DATA;ENDSEC;` blocks. Greedy regex parsers may match across boundaries.
Reproducer recipe
`END-ISO-10303-21;\n<garbage bytes>` or `..ENDSEC;DATA;ENDSEC;DATA;..END-ISO-10303-21;`
Expected kernel behavior
Stop reading at the first end marker; treat trailing bytes as warning and discard. Reject second `DATA` at top level.
Notes
Cross-oracle: pure-Python Part-21 validator rejects (reject(E_NO_CLOSE)); OCCT silently accepts (load is `empty`). OCC auto-heals a spec-level violation. Synonyms: "garbage after STEP end marker", "log lines after END-ISO-10303-21", "concatenated STEP files", "data after STEP terminator", "stray DATA after end marker".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'(?s)END-ISO-10303-21;.+\S')
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)
1/* Ls024 - Tail garbage after end marker 2 ---------------------------------------------------------------------- 3 Catalog section : §12.1c structural / framing 4 Sources : A025, N002 (notes) 5 See also : Ad080 6 ---------------------------------------------------------------------- 7 Defect 8 Material appearing after END-ISO-10303-21;: appended log lines, 9 concatenated STEP files, or stray DATA;ENDSEC; blocks. Greedy regex 10 parsers may match across the boundary. 11 Expected behavior 12 Stop reading at the first end marker; treat trailing bytes as a 13 warning and discard. Reject a second DATA; block at top level. 14 ---------------------------------------------------------------------- 15*/ 16ISO-10303-21; 17HEADER; 18FILE_DESCRIPTION(('Ls024 - tail garbage after end marker'),'2;1'); 19FILE_NAME('Ls024.stp','2026-06-20T00:00:00',('auto-generated'),(''), 20 'auto-generated','',''); 21FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 22ENDSEC; 23DATA; 24#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 25#2=DIRECTION('x',(1.,0.,0.)); 26ENDSEC; 27END-ISO-10303-21; 28/* Defect: everything below this line is tail garbage after the end marker */ 29Export completed at 2026-06-20T00:00:00Z 30Total entities: 2 31DATA; 32#100=CARTESIAN_POINT('stray',(9.,9.,9.)); 33ENDSEC;