mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-07 13:39:55 +00:00
0c6765e6a6 stopped bounds-checking the SCE comment and library version
segments, which decrypted modules list past the end of the file. Some
decrypted modules also end with an unmapped PT_NOTE (address 0, memory
size 0) right after those two: Hollow Knight: Silksong's
Media/Modules/Il2cppUserAssemblies.prx (PPSA12544) lists one at offset
0x54ad408 in a file of 0x54ad407 bytes, so converting the title failed
with "ELF range exceeds file". The guest writer already drops unmapped
notes (SegmentFilter), and nothing reads their bytes.
Skip the bounds check for a note with address 0 and memory size 0. A
mapped note outside the file still fails. test_guest_trailing_note
covers both, with an unmapped note inside the file as well.
Co-Authored-By: Claude Opus 5.5 <[email protected]>