mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
scriptingGetMem and scriptingFreeMem went through the title's registered allocator. A title that ships its own libc.prx has already initialized that allocator, and the application heap's lazy initialization then ran its initializer a second time: Metal Gear Solid Master Collection (PPSA18194) started a second Unity heap and aborted when it freed a block of the first. The hooks now allocate and free through libc's guest heap, so they never initialize the registered allocator; sizes that overflow return null. Co-Authored-By: Claude Opus 5.5 <[email protected]>