Check invalid address in sceMpegAtracDecode.

Fixes #11026.
This commit is contained in:
shenweip committed 2020-01-05 22:11:43 +08:00
1 parent f4b581025d
commit 4bc0274d53
1 file changed
+5
+5
View File
@@ -1898,6 +1898,11 @@ static u32 sceMpegAtracDecode(u32 mpeg, u32 auAddr, u32 bufferAddr, int init)
return -1;
}
if (!Memory::IsValidAddress(bufferAddr) || !Memory::IsValidAddress(auAddr)) {
WARN_LOG(ME, "sceMpegAtracDecode(%08x, %08x, %08x, %i): invalid addresses", mpeg, auAddr, bufferAddr, init);
return -1;
}
DEBUG_LOG(ME, "sceMpegAtracDecode(%08x, %08x, %08x, %i)", mpeg, auAddr, bufferAddr, init);
SceMpegAu atracAu;