mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Fix Graph Local Check
This commit is contained in:
parent
e642406192
commit
c4a4cb8a25
@ -483,6 +483,10 @@ DisassemblerGraphView::DisassemblyBlock *DisassemblerGraphView::blockForAddress(
|
|||||||
for (auto &blockIt : disassembly_blocks) {
|
for (auto &blockIt : disassembly_blocks) {
|
||||||
DisassemblyBlock &db = blockIt.second;
|
DisassemblyBlock &db = blockIt.second;
|
||||||
for (Instr i : db.instrs) {
|
for (Instr i : db.instrs) {
|
||||||
|
if (i.addr == RVA_INVALID || i.size == RVA_INVALID) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ((i.addr <= addr) && (addr <= i.addr + i.size)) {
|
if ((i.addr <= addr) && (addr <= i.addr + i.size)) {
|
||||||
return &db;
|
return &db;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user