Ip052 — Draco point-cloud attribute `num_components` overflow

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

P2 — spec deviation (no data loss)

spec-violation

Sources

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

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/?