step-examples/12-1a-encoding/Le028.stp
Sources
- Q068/StepFile/step.lex:118-119 (e3i fix)
Description
Files transmitted through Windows-aware tools accumulate stray NUL bytes or `CR LF` line terminators. Naive scanners that only handle bare `\n` mis-count line numbers or misread tokens.
Reproducer recipe
file with `CR LF` line endings throughout; or stray `\x00` bytes injected between tokens.
Expected kernel behavior
ignore CR (treat as whitespace); skip stray NULs with a warning; emit accurate line numbers under either convention.
Notes
Cross-oracle: pure-Python Part-21 validator rejects (reject(E_NO_MAGIC)); OCCT silently accepts (load is `empty`). OCC auto-heals a spec-level violation. Synonyms: "NUL byte in STEP file", "CRLF line endings in STEP", "DOS line breaks in Unix parser", "stray null bytes in STEP", "Windows CRLF confuses line numbering".
Expected validation
occt=empty/empty gmsh=empty ifc=reject
Byte assertions
contains(b'\r\n')contains(b'\x00')matches(rb'\x00')
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