Ip012 — glTF accessor `componentType` disagrees with the buffer's actual data layout

§12.15 import-format parser robustness (sub-class: type-size-mismatch)

P2 — spec deviation (no data loss)

spec-violation

Sources

Description

A glTF accessor declares `componentType: 5121` (UNSIGNED_BYTE, 1 byte/component) and `type: "VEC3"`, but the backing buffer actually holds 3 interleaved `FLOAT32` (4 bytes/component) vertices — the same 36-byte payload Ip004/Ip007 use for a legitimate 3×VEC3-float mesh. A loader that trusts the declared `componentType` for its per-component stride reads 1 byte where 4 were written, silently reinterpreting the float bit-pattern as an unsigned byte. Distinct from Ip007 (invalid enum value): here the enum is *valid* but disagrees with how the bytes were actually laid out.

Reproducer recipe

a `.gltf` accessor whose `componentType`/`type` byte-width contract does not match the true byte layout of its buffer's contents.

Expected kernel behavior

there is no way to detect this from the accessor alone (both are individually valid); loaders should not fabricate silently — if a diversity of tools disagree on the same bytes, the export/import contract itself is broken, which is exactly the graded signal.

Notes

Cross-oracle: trimesh 4.12.2 loads without error but silently corrupts the geometry — `g.vertices` decodes to `[[0,0,0],[0,0,0],[0,0,0]]` (all-zero, degenerate) instead of the intended `(0,0,0),(1,0,0),(0,1,0)` triangle, because reading 1-byte UNSIGNED_BYTE components from float32-laid-out bytes picks up each float's leading zero byte — verified 2026-07-12. No exception is raised; the mesh is silently wrong. Synonyms: "glTF componentType data layout mismatch", "accessor type disagrees with buffer bytes", "silent byte-width misparse", "UNSIGNED_BYTE read of float data". Provenance tier: bytes-only.

Expected validation

Provenance tier

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

Byte assertions

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": "Ip012 assimp#5683 accessor componentType/data-layout mismatch" },
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": 5121,
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": 36 }
21  ],
22  "buffers": [
23    { "byteLength": 36, "uri": "data:application/octet-stream;base64,AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAA" }
24  ]
25}