import-examples/12-15-import-formats/Ip049.drc
Sources
- Pattern-mined from google/draco#1169 header-validation surface (Apache-2.0 — pattern only
- bytes regenerated via DracoPy, not copied).
Description
The header's major/minor version bytes (offsets 5–6) gate which bitstream layout the decoder applies. A version the build does not support must be rejected up front; proceeding would parse later fields under the wrong layout assumptions.
Reproducer recipe
Encode the tetra base mesh (version 2.2); set the major-version byte at offset 5 to `0xFF`. All other bytes untouched.
Expected kernel behavior
Compare the declared version against the maximum supported version and reject anything higher with a clear diagnostic before decoding the body.
Notes
DracoPy 2.0.0 result observed: `FileTypeException: Input mesh is not draco encoded`. Synonyms: "unsupported version header", "future bitstream version", "version-gate bypass". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'DRACO')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1DRACOÿ ßÿ"ÿ ( 2³
ÂB ÿ? ?