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:
authorNWX10 <179748639+NWX10@users.noreply.github.com>2026-11-21 23:38:51 +0300
committerNWX10 <179748639+NWX10@users.noreply.github.com>2026-11-21 23:38:51 +0300
commit85c660bfa17ece38da9913d26e5351966f50e602 (patch)
tree3f02f18a0b522957fe94230d768ee37b75f5dc15 /runtime/src/pe_loader.cpp
parentdcf5f44879ffa7cc1a1b61e284568b03c39d9885 (diff)
rpf9_carve.py: survive a Bink signature cut off by the end of the file, and an empty data area
- A 'KB2x' match within the last 0x1C bytes of the archive (what a truncated copy can end with) read the header's size and width/height fields past the end of the file. struct.error is not caught, so the run died without writing index.json, losing the whole carve. Such a match is now skipped like any other non-video candidate. - An archive whose data area is empty (its data offset is the file size), or --start at the end, gave span 0 and a ZeroDivisionError in the final "readable" line after index.json was written. The percentages now divide by at least 1; the summary still records span 0. - tests/test_rpf9_carve.py: one synthetic case each; both fail on main. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions