mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-20 23:54:48 +00:00
Fix a possible infinite loop in the symbol map.
This commit is contained in:
parent
43906e5e96
commit
932e0b857c
@ -256,7 +256,8 @@ bool SymbolMap::GetSymbolInfo(SymbolInfo *info, u32 address, SymbolType symmask)
|
||||
{
|
||||
const MapEntryUniqueInfo searchKey = {start_address, start_address};
|
||||
const auto entry = uniqueEntries.find(searchKey);
|
||||
if (entry != uniqueEntries.end() && (entry->type & symmask) != 0)
|
||||
// In case there were duplicates at some point, double check the end address.
|
||||
if (entry != uniqueEntries.end() && entry->vaddress + entry->size > address && (entry->type & symmask) != 0)
|
||||
{
|
||||
info->address = entry->vaddress;
|
||||
info->size = entry->size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user