diff options
| author | eIBart0 <eIBart0@users.noreply.github.com> | 2026-11-22 00:44:10 +0000 |
|---|---|---|
| committer | eIBart0 <eIBart0@users.noreply.github.com> | 2026-11-22 00:44:10 +0000 |
| commit | 16b4d32e9c24c8b087b11e9248e79d5facacf359 (patch) | |
| tree | d3343af9277b8a41717262edd03c1a1ecf5f49f3 /runtime/test/gameinput_test.cpp | |
| parent | 91b36cf86cb92a95836eed8af73abc0671a61e31 (diff) | |
restofworld_index.py: validate directory options, enforce --max-inflate in scan_dir, and close mmap with context manager
Follow-up to #498 and #530 (claimed in #374):
- Reject --start and --limit when source is a directory (exit code 2 via ap.error).
- Pass --max-inflate to scan_dir() and skip .bin files larger than max_inflate, incrementing skipped_candidates.
- Wrap mmap.mmap() in scan_rpf() with a context manager so out-of-range start errors always close the mapping.
- Add unit tests covering all three fixes.
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions