Skip to content
Permalink
Browse files

Check invalid address in sceMpegAtracDecode.

Fixes #11026.
  • Loading branch information
shenweip committed Jan 5, 2020
1 parent f4b5810 commit 4bc0274d53d0895602b9243eff61a28339f58ec2
Showing with 5 additions and 0 deletions.
  1. +5 −0 Core/HLE/sceMpeg.cpp
@@ -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;

0 comments on commit 4bc0274

Please sign in to comment.
You can’t perform that action at this time.