import-examples/12-15-import-formats/Ip052.drc
Sources
- Pattern-mined from google/draco#1172 (Apache-2.0 — pattern only
- bytes regenerated via DracoPy, not copied).
Description
Each attribute descriptor declares a `num_components` byte that multiplies into the per-point stride and total attribute-buffer size. A value far larger than the true component count (3 for position) drives `count × component_size` size arithmetic that a robust decoder must range-check (and compute with a checked multiply) before allocating.
Reproducer recipe
Encode the 4-point base point cloud (position attribute `num_components` = 3 at offset 19); set offset 19 to `0xFF`. All other bytes untouched.
Expected kernel behavior
Reject implausible component counts; use checked multiplication for all attribute size arithmetic; never allocate or index from an unvalidated component count.
Notes
DracoPy 2.0.0 result observed: `FileTypeException: Input mesh is not draco encoded`. Synonyms: "attribute component-count overflow", "num_components size-math overflow", "unchecked stride multiply". 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 ÿ @ êX ßAÊÿ?")N ° @ÿº>>-G>Üï8
c/?