Skip to content
Browse files

Merge pull request #12557 from shenweip/mpeg-minor

Check invalid address in sceMpegAtracDecode.
  • Loading branch information
hrydgard committed Jan 5, 2020
2 parents f4b5810 + 8ccc799 commit bca78350bfe66b4c04ce410c0020c2a6eb92610b
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)) {
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 bca7835

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