From 983e195dd2b8a5f07a8da15b49445ea725650547 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 26 Jan 2014 00:02:01 -0800 Subject: [PATCH] Fix possible module index overlap. --- Core/Debugger/SymbolMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Debugger/SymbolMap.cpp b/Core/Debugger/SymbolMap.cpp index 4bb51498d8..a5c4ada040 100644 --- a/Core/Debugger/SymbolMap.cpp +++ b/Core/Debugger/SymbolMap.cpp @@ -443,7 +443,7 @@ u32 SymbolMap::GetModuleAbsoluteAddr(u32 relative, int moduleIndex) const { int SymbolMap::GetModuleIndex(u32 address) const { lock_guard guard(lock_); - auto iter = activeModuleEnds.lower_bound(address); + auto iter = activeModuleEnds.upper_bound(address); if (iter == activeModuleEnds.end()) return -1; return iter->second.index;