import-examples/12-15-import-formats/Ip011.gltf
Sources
- Pattern-mined from assimp/assimp#6612 (`CopyValue`, glTFCommon.h) (BSD-3-Clause — pattern only, no bytes copied).
Description
A glTF node declares a `matrix` transform (a JSON array meant to hold 16 floats for a 4×4 column-major matrix) but supplies only 8. `CopyValue<float[16]>` unconditionally reads/copies 16 floats from whatever backs the value; with only 8 present, the copy runs past the end of the parsed array. Distinct from Ip004/Ip012 (accessor/buffer-backed data) — here the insufficient data is a literal inline JSON array, not a buffer view.
Reproducer recipe
a `.gltf` node object whose `matrix` array has fewer than 16 numeric entries.
Expected kernel behavior
verify the `matrix` array holds exactly 16 floats before using it as a 4×4 transform; reject with a diagnostic naming the node and the actual/expected element count.
Notes
Cross-oracle: trimesh 4.12.2 raises ValueError (cannot reshape array of size 8 into shape (4,4)) when it tries to reshape the `matrix` array into a 4×4 transform — verified 2026-07-12. First fixed-width-read-insufficient-backing class in the corpus (assimp's own `CopyValue` reads unconditionally and would over-read instead of raising). Synonyms: "glTF matrix insufficient data", "node matrix too few floats", "CopyValue overread", "4x4 transform short array". Provenance tier: bytes-only.
Expected validation
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'"matrix": [ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0 ]')
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": "Ip011 assimp#6612 node matrix has fewer than 16 backing floats" }, 3 "scene": 0, 4 "scenes": [ { "nodes": [ 0 ] } ], 5 "nodes": [ 6 { "name": "root", "matrix": [ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0 ] } 7 ] 8}