Files
mandy/tests
SirAmong 7b3817a9fb rpf9_carve.py: reject a file that is not an RPF9 archive (BUILD-98)
The header magic was never checked, so a non-RPF9 file "carved" to 0
streams with exit 0 and looked like an empty archive.

- rpf9_carve.py: the file must start with 9FPR (the tag RPF9 stored
  little-endian, docs/rpf.md and docs/bvh.md); otherwise one error line
  naming the file and a non-zero exit, before the out dir is created.
- Tests: synthetic non-RPF9 file for rpf9_carve.py and, through it, for
  gamedata_index.py (which already reports a carver rejection as one ERROR
  line since main's own change). The existing fixtures wrote the tag as
  RPF9, which is not what real archives contain; they now write 9FPR.

--limit 0 and negative values were already rejected on main (byte_count).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 20:59:04 -05:00
..