Ip007 — glTF accessor `componentType` is an invalid enum value

§12.15 import-format parser robustness (sub-class: invalid-enum-tag)

P2 — spec deviation (no data loss)

spec-violation

Sources

Description

A glTF 2.0 accessor declares `componentType: 9999`, outside the valid set {5120…5126}. Element-size math casts the value to an enum and uses it to compute per-element byte strides; an unknown value yields a nonsensical (or zero) element size that drives out-of-bounds or divide-related reads. The backing buffer here is correctly sized (36 B for 3× VEC3 float) so the *only* defect is the invalid tag.

Reproducer recipe

a self-contained `.gltf` whose accessor `componentType` is not one of the seven valid glTF component types.

Expected kernel behavior

reject any `componentType` outside {5120,5121,5122,5123,5125,5126} before computing element sizes.

Notes

Cross-oracle: trimesh 4.12 raises KeyError(9999) on the unknown componentType — verified 2026-07-12. The corpus's first invalid-enum-tag import class. Synonyms: "glTF invalid componentType", "unknown accessor component type", "bad enum tag", "componentType out of range". 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": "Ip007 assimp#6527 accessor componentType is an invalid enum" },
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": 9999,
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}