From 2f0f63fdbc275d3a3dd80404f8faf74e71a7f26d Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sun, 30 Apr 2017 02:45:10 +0100 Subject: [PATCH] PPCAnalyst: Prevent a crash when outside the RAM --- Source/Core/Core/PowerPC/PPCAnalyst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 7f3b9fb354..b02dbd22f4 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -90,7 +90,7 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size) while (true) { func.size += 4; - if (func.size >= CODEBUFFER_SIZE * 4) // weird + if (func.size >= CODEBUFFER_SIZE * 4 || !PowerPC::HostIsRAMAddress(addr)) // weird return false; if (max_size && func.size > max_size)