Files
AnyPS5/core
JJenkxandClaude Opus 5.5 860c3aa538 fix(relinker): ignore an unmapped note segment outside a module's file
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]>
2026-10-23 05:18:56 -04:00
..