import-examples/12-15-import-formats/Ip006.obj
Sources
- Pattern-mined from assimp/assimp#281 + #2349 (broken-index class
- assimp 6.0.4 face-scan fix) (BSD-3-Clause — pattern only, no bytes copied).
Description
OBJ permits negative face indices as back-references relative to the running vertex count (`-1` = the most recent `v`). Here only 3 vertices precede a face `f -9 -1 -1`; `-9` resolves to `count + index + 1 = 3 + (−9) + 1 = −5`, which is < 1 and references no vertex. A loader that resolves negatives without a lower-bound check indexes before the start of the vertex array.
Reproducer recipe
an OBJ with N `v` records followed by a face whose negative index is more negative than −N.
Expected kernel behavior
resolve each negative index against the running count and reject (or skip) any result < 1; never index before the vertex array.
Notes
Cross-oracle: trimesh 4.12 raises IndexError (index -9 out of bounds for size 3) — verified 2026-07-12. Distinct from Ip001 (positive OOB). Synonyms: "OBJ negative index underflow", "relative index below negative count", "back-reference before first vertex", "OBJ f -9 out of range". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'f -9 -1 -1')
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1# Ip006 assimp#281 negative relative face index below -(vertex count) 2v 0.0 0.0 0.0 3v 1.0 0.0 0.0 4v 0.0 1.0 0.0 5f -9 -1 -1