mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-28 00:35:34 +00:00
Merge pull request #5342 from sepalani/ppc-analyst-crash
PPCAnalyst: Prevent a crash when outside the RAM
This commit is contained in:
commit
f0a89f8daf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user