PPCAnalyst: Prevent a crash when outside the RAM
This commit is contained in:
parent
f56a9b660d
commit
2f0f63fdbc
|
@ -90,7 +90,7 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
func.size += 4;
|
func.size += 4;
|
||||||
if (func.size >= CODEBUFFER_SIZE * 4) // weird
|
if (func.size >= CODEBUFFER_SIZE * 4 || !PowerPC::HostIsRAMAddress(addr)) // weird
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (max_size && func.size > max_size)
|
if (max_size && func.size > max_size)
|
||||||
|
|
Loading…
Reference in New Issue