Ip010 — OFF face names a vertex index ≥ declared vertex count

§12.15 import-format parser robustness (sub-class: index-out-of-range)

P2 — spec deviation (no data loss)

topology

Sources

Description

An OFF file declares 3 vertices (indices 0–2) but its face record `3 0 1 5` references vertex index 5. A loader that indexes the vertex array by the face's index without bounds-checking reads past the end of the vertex table. Distinct from Ip003 (OFF header *count* lie) — here the counts are honest but a face index is out of range.

Reproducer recipe

an OFF file whose face `k i0 i1 …` names an index ≥ the declared vertex count V.

Expected kernel behavior

validate every face index against V at parse time; reject or skip the face rather than dereference past the vertex table.

Notes

Cross-oracle: trimesh 4.12 raises IndexError (index 5 out of bounds for size 3) — verified 2026-07-12. Complements Ip003 (OFF header count) with an OFF face index-OOB. Synonyms: "OFF face index out of range", "vertex index exceeds V", "OFF OOB face reference", "index past vertex table". Provenance tier: bytes-only.

Expected validation

Provenance tier

bytes-only — defect not fully embodied in fixture bytes.

Byte assertions

Cross-references

Ip003

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1OFF
2# Ip010 assimp#2228 face names a vertex index >= declared vertex count
33 1 0
40.0 0.0 0.0
51.0 0.0 0.0
60.0 1.0 0.0
73 0 1 5