import-examples/12-15-import-formats/Ip004.gltf
Sources
- Pattern-mined from assimp/assimp#6488 + #1002 (`ExtractData`) + OSS-Fuzz 483102963 (BSD-3-Clause — pattern only, no bytes copied).
Description
A glTF 2.0 accessor declares `count: 3` of `VEC3`/`FLOAT` (36 bytes required) but its `bufferView` (and backing `buffer`) is only 12 bytes. `ExtractData` copies `count × element-size` bytes without checking against `bufferView.byteLength`, over-reading 24 bytes past the buffer. First glTF-format fixture in the corpus and its first accessor-over-runs-backing-store class.
Reproducer recipe
a self-contained `.gltf` (JSON, data-URI buffer) where `accessor.count × componentSize × typeSize` exceeds the referenced `bufferView.byteLength`.
Expected kernel behavior
enforce `byteOffset + count × stride ≤ bufferView.byteLength ≤ buffer.byteLength` before any copy; reject with a diagnostic naming the accessor and the shortfall.
Notes
Cross-oracle: trimesh 4.12 raises ValueError (cannot reshape the 12-byte buffer's 3 floats into (3,3)) — verified 2026-07-12. The 16-char base64 payload decodes to exactly 12 zero bytes — one VEC3, a third of the 36 the accessor claims. Synonyms: "glTF accessor out of bounds", "accessor over-runs bufferView", "ExtractData overflow", "count exceeds byteLength". Provenance tier: bytes-only. First glTF coverage.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'data:application/octet-stream;base64,AAAAAAAAAAAAAAAA')
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1{ 2 "asset": { "version": "2.0", "generator": "Ip004 assimp#6488 accessor over-runs bufferView" }, 3 "scene": 0, 4 "scenes": [ { "nodes": [ 0 ] } ], 5 "nodes": [ { "mesh": 0 } ], 6 "meshes": [ 7 { "primitives": [ { "attributes": { "POSITION": 0 }, "mode": 4 } ] } 8 ], 9 "accessors": [ 10 { 11 "bufferView": 0, 12 "componentType": 5126, 13 "count": 3, 14 "type": "VEC3", 15 "min": [ 0.0, 0.0, 0.0 ], 16 "max": [ 1.0, 1.0, 0.0 ] 17 } 18 ], 19 "bufferViews": [ 20 { "buffer": 0, "byteOffset": 0, "byteLength": 12 } 21 ], 22 "buffers": [ 23 { "byteLength": 12, "uri": "data:application/octet-stream;base64,AAAAAAAAAAAAAAAA" } 24 ] 25}