upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorSirAmong <ariel.morocho@hotmail.com>2026-11-21 20:06:31 -0500
committerSirAmong <ariel.morocho@hotmail.com>2026-11-21 20:59:04 -0500
commit7b3817a9fbf6668bcac9301ac15423ff02bdca62 (patch)
tree7b194ff55d329851a13480aae43099ae6298fa7f /runtime/src
parentc432cdce127ed2d22a99aa6ef57d91db4a10b5bb (diff)
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>
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions