Ip048 — Draco invalid encoder-method header byte

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

P2 — spec deviation (no data loss)

topology

Sources

Description

The 11-byte Draco header's `encoder_method` byte (offset 8) selects the mesh connectivity codec; only 0 (sequential) and 1 (Edgebreaker) are defined. A value outside that set must be rejected before the decoder dispatches to a non-existent method.

Reproducer recipe

Encode the tetra base mesh (method byte = 1, Edgebreaker); set file offset 8 to `0x02` (undefined method). All other bytes untouched.

Expected kernel behavior

Validate the method byte against the known enumeration; reject an unknown method with a clear diagnostic rather than dispatching on it.

Notes

DracoPy 2.0.0 result observed: `FileTypeException: Input mesh is not draco encoded`. Synonyms: "unknown codec method", "invalid encoder-method enum", "unsupported connectivity method". 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ßÿ"ÿ	(2³
ÂBÿ?€?