upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authoragilesh <mraj50463@gmail.com>2026-11-22 21:13:49 +0530
committeragilesh <mraj50463@gmail.com>2026-11-22 21:13:49 +0530
commit9119e7f6038e2bf11bc26921105a5aeade497afb (patch)
treeda864c5077ba1183c4489cb606f16fa5f661d77a /runtime/src/pe_loader.cpp
parent6a6704df1592e1dc4a3215ddf1423a78adb52045 (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