diff --git a/rpcsx/vm.cpp b/rpcsx/vm.cpp index 9a3a656..b2653f8 100644 --- a/rpcsx/vm.cpp +++ b/rpcsx/vm.cpp @@ -1114,6 +1114,10 @@ bool vm::virtualQuery(const void *addr, std::int32_t flags, std::lock_guard lock(g_mtx); auto address = reinterpret_cast(addr); + if (address < kMinAddress || address >= kMaxAddress) { + return false; + } + auto it = gMapInfo.lowerBound(address); if (it == gMapInfo.end()) {