From 9d7d6df476a62357d22564baa4067a8745bc163c Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 8 Jun 2015 17:49:54 -0700 Subject: [PATCH] Bail on invalid heap lookups. --- src/xenia/memory.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index 64bb1d498..94939e697 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -287,8 +287,10 @@ BaseHeap* Memory::LookupHeap(uint32_t address) { return &heaps_.vA0000000; } else if (address < 0xE0000000) { return &heaps_.vC0000000; - } else { + } else if (address < 0xFFD00000) { return &heaps_.vE0000000; + } else { + return nullptr; } }