diff options
| author | agilesh <mraj50463@gmail.com> | 2026-11-22 21:13:49 +0530 |
|---|---|---|
| committer | agilesh <mraj50463@gmail.com> | 2026-11-22 21:13:49 +0530 |
| commit | 9119e7f6038e2bf11bc26921105a5aeade497afb (patch) | |
| tree | da864c5077ba1183c4489cb606f16fa5f661d77a /runtime/src/pe_loader.cpp | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
anim_index: refuse report and --rigs paths that collide with source or carve inputs
anim_index.py accepted output paths that refer to the source .rpf archive, truncating the input file upon writing reports. When targeting a carved directory, output and --rigs paths could also silently overwrite index.json (the carve manifest) or carved .bin payload files. Furthermore, missing parent folders were checked only after completing the entire scan, and directory destinations or invalid extensions were not validated upfront.
Check destination paths before scanning:
- Refuse out or --rigs matching the source archive (same path, case, or hard link)
- Refuse out or --rigs overwriting the carve manifest or input files in directory mode
- Refuse directory destinations for out and --rigs
- Enforce valid report extensions (.json or .csv for out, .json for --rigs)
- Validate parent directories exist before the scan begins
- Add test coverage in tests/test_report_source_collision.py and tests/test_anim_index.py
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions