import-examples/12-15-import-formats/Ip050.drc
Sources
- Pattern-mined from google/draco#1171 (empty/degenerate decode surface) (Apache-2.0 — pattern only
- bytes regenerated via DracoPy, not copied).
Description
The `encoder_method` byte is set to a VALID value (0, sequential) that does not match the actual Edgebreaker-encoded body. Unlike Ip048 (an out-of-range method), this passes the enum check, so the decoder applies the wrong-but-legal codec to the body. The danger class here is a silently-wrong result rather than an error: the decoder must cross-check the method against what the body actually contains.
Reproducer recipe
Encode the tetra base mesh (method = 1, Edgebreaker); set file offset 8 to `0x00` (sequential — a valid method, wrong for this body). All other bytes untouched.
Expected kernel behavior
Detect that the declared method cannot consistently decode the body and reject with a diagnostic; never emit a geometry-losing empty result without an error.
Notes
DracoPy 2.0.0 result observed: decode SUCCEEDS with NO exception and returns a `DracoPointCloud` carrying no points (`points` is empty) and no faces — the entire mesh is silently discarded. This is the one fixture in the set whose malformation is NOT rejected: it decodes to an empty result with no diagnostic. Synonyms: "method/body mismatch", "silent-empty decode", "connectivity silently dropped". 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 ÿ? ?