Merge pull request #22275 from hrydgard/scemp4-review-fixes

sceMp4: Read the effective flags (not the config), don't reload the modules by accident
This commit is contained in:
Henrik Rydgård
2026-09-09 19:32:10 -06:00
committed by GitHub
2 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -2835,7 +2835,9 @@ struct GetModuleIdByAddressArg
// needs the callee's gp in place. libmp4.prx uses it on the three callbacks it is given.
// Named after what it does; the official name isn't known.
static u32 sceKernelGetModuleGPByAddress(u32 addr, u32 gpPtr) {
if (!Memory::IsValidAddress(gpPtr)) {
// Four bytes get written, so check for four - IsValidAddress would pass on the last three
// bytes of a region.
if (!Memory::IsValidRange(gpPtr, 4)) {
return hleLogError(Log::sceModule, SCE_KERNEL_ERROR_ILLEGAL_ADDR, "bad gp pointer");
}