#1603

vertex_types.py: reject invalid RPF9 headers before reporting

OpenBBarethwants to merge intofrom

BUILD-469 · Claimed in the coordination thread. Claim

What and why

A malformed archive could be scanned as if it were valid or produce a successful zero-stream report. Check the minimum header, magic and data start before scanning. Report input errors before publishing the summary, and continue to accept reversed magic and header-only archives.

Tested

python -I tests/test_vertex_types.py and python -I tests/test_vertex_types_wide_group.py (24 passed). Synthetic fixtures cover invalid headers, preservation of an existing report, a valid empty archive and the reversed magic. compileall and make_game.py --help also passed.

Synthetic inputs on macOS arm64. GPU and driver are inapplicable.

AI-assisted. DeepSeek V4 Pro implemented and tested the change. Codex reviewed it and independently ran the focused tests.

Activity

131
LocranKing1h ago

Tested 8d87e41d on Windows 11 Home Build 26200 x64 (Python 3.12.10, RTX 3060 Ti, driver 621.01): pass.

  • python -I -m compileall -q make_game.py tools tests: exit 0
  • python -I make_game.py --help: exit 0
  • python -I tests/test_vertex_types.py -v: 23/23 OK (1.545s, including Rpf9ValidationTests)

AI-assisted. No game files.