import-examples/12-15-import-formats/Ip008.gltf
Sources
- Pattern-mined from assimp/assimp#6485 (`ImportNode`) + OSS-Fuzz 483501004 (BSD-3-Clause — pattern only, no bytes copied).
Description
A glTF scene graph node lists `children: [5]` but the document declares only one node (index 0). `ImportNode` recurses into `nodes[5]` without bounds-checking the child index against the `nodes` array length, indexing past its end. Same index-out-of-range family as Ip004/Ip005 but at the scene-graph (node) layer rather than the buffer/geometry layer.
Reproducer recipe
a `.gltf` whose node `children[]` (or a scene's node list) names an index ≥ the number of declared nodes.
Expected kernel behavior
validate every node/child index against the `nodes` array length before recursing.
Notes
Cross-oracle: trimesh 4.12 raises IndexError (children references node index out of range) — verified 2026-07-12. Complements Ip004 (accessor-over-bufferView) with a scene-graph index-OOB in the same format. Synonyms: "glTF node index out of range", "children references missing node", "scene graph index OOB", "ImportNode overflow". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'"children": [ 5 ]')
Cross-references
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": "Ip008 assimp#6485 node children[] references a node index out of range" }, 3 "scene": 0, 4 "scenes": [ { "nodes": [ 0 ] } ], 5 "nodes": [ 6 { "name": "root", "children": [ 5 ] } 7 ] 8}