Ip003 — OFF header V/F/E counts exceed actual body rows (declared > actual)

§12.15 import-format parser robustness (sub-class: declared-count-exceeds-body)

P2 — spec deviation (no data loss)

topology

Sources

Description

An OFF header line `8 4 0` claims 8 vertices and 4 faces, but the body supplies only 3 vertex rows and 1 face row. An OFF loader that trusts the header count iterates 8 vertices / 4 faces and reads past EOF. Same declared-count-exceeds-body family as Ip002 but for the OFF `V F E` triple rather than PLY element counts.

Reproducer recipe

an OFF file whose count line names more vertices/faces than the body rows that follow.

Expected kernel behavior

stop at EOF, validate the declared V/F/E against the rows actually read, and reject with a diagnostic rather than looping past the buffer.

Notes

Cross-oracle: trimesh 4.12 raises ValueError (cannot reshape 12 floats into (8,3) — it trusts the header's 8-vertex count) — verified 2026-07-12. Synonyms: "OFF header count mismatch", "V F E exceeds body", "OFF trusts header", "declared face count too high". Provenance tier: bytes-only. First OFF-format parser-robustness fixture in the corpus.

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)
1OFF
2# Ip003 assimp#2228 header V F E counts exceed actual body rows
38 4 0
40.0 0.0 0.0
51.0 0.0 0.0
60.0 1.0 0.0
73 0 1 2