Fix Graph Local Check

This commit is contained in:
Florian Märkl 2018-05-24 18:58:46 +02:00
parent e642406192
commit c4a4cb8a25

View File

@ -483,6 +483,10 @@ DisassemblerGraphView::DisassemblyBlock *DisassemblerGraphView::blockForAddress(
for (auto &blockIt : disassembly_blocks) {
DisassemblyBlock &db = blockIt.second;
for (Instr i : db.instrs) {
if (i.addr == RVA_INVALID || i.size == RVA_INVALID) {
continue;
}
if ((i.addr <= addr) && (addr <= i.addr + i.size)) {
return &db;
}