Bail on invalid heap lookups.
This commit is contained in:
parent
52b8f4b54b
commit
9d7d6df476
|
@ -287,8 +287,10 @@ BaseHeap* Memory::LookupHeap(uint32_t address) {
|
||||||
return &heaps_.vA0000000;
|
return &heaps_.vA0000000;
|
||||||
} else if (address < 0xE0000000) {
|
} else if (address < 0xE0000000) {
|
||||||
return &heaps_.vC0000000;
|
return &heaps_.vC0000000;
|
||||||
} else {
|
} else if (address < 0xFFD00000) {
|
||||||
return &heaps_.vE0000000;
|
return &heaps_.vE0000000;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue