From c4a4cb8a2531acd070404c763d63a603e7ef3418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Thu, 24 May 2018 18:58:46 +0200 Subject: [PATCH] Fix Graph Local Check --- src/widgets/DisassemblerGraphView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index d1c5f3d1..568c2f07 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -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; }