Ip047 — Draco truncated bitstream over-read

§12.15 import-format parser robustness (sub-class: draco-codec)

P2 — spec deviation (no data loss)

crash

Sources

Description

The binary entropy-coded body is cut short after a valid header, so section/length fields still claim payload that is not present. A `DecoderBuffer::Peek`/`Decode` that does not check `remaining_size()` reads past the buffer tail. Unlike an ASCII EOF over-read there is no line/token structure to anchor recovery on.

Reproducer recipe

Encode the tetra base mesh (79 bytes) and keep only the first 40 bytes (header + partial connectivity body); the trailing symbol/attribute payload is dropped.

Expected kernel behavior

Every `Peek`/`Decode` must bounds-check against the remaining buffer; a truncated stream must be rejected with a diagnostic, never read past its tail.

Notes

DracoPy 2.0.0 result observed: `FileTypeException: Input mesh is not draco encoded`. Truncation at every length tried (11/20/40/55/78 of 79 bytes) rejected the same way — no crash. Synonyms: "truncated codec bitstream", "buffer over-read at EOF", "short read past remaining_size". Provenance tier: bytes-only.

Expected validation

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1DRACOßÿ"ÿ