import-examples/12-15-import-formats/Ip051.drc
Sources
- Pattern-mined from google/draco#1105 (Apache-2.0 — pattern only
- bytes regenerated via DracoPy, not copied).
Description
In the point-cloud (kd-tree attribute) path, the header carries a `num_points` count (uint32, little-endian, at offset 11) that drives attribute-buffer sizing. A count that disagrees with the encoded attribute payload — here an implausibly large value — must be cross-checked against the attribute geometry before decode.
Reproducer recipe
Encode the 4-point base point cloud; set the `num_points` uint32 at offset 11 to `0xFFFFFFFF`. All other bytes untouched.
Expected kernel behavior
Cross-check the declared point count against the attribute payload size before allocating/decoding; reject an inconsistent count with a diagnostic.
Notes
DracoPy 2.0.0 result observed: `FileTypeException: Input mesh is not draco encoded`. Decode returns immediately with a generic reject — no OOM/hang; the error string does not confirm the point-count bound specifically fired, only that no allocation from the unvalidated count occurs. This is the point-cloud codec path, distinct from the mesh count-bomb Ip046. Synonyms: "point-count/level mismatch", "kd-tree attribute count bomb", "unbounded num_points". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'DRACO')
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1DRACO ÿÿÿÿ @ êX ßAÊÿ?")N ° @ÿº>>-G>Üï8
c/?