From 4cee71891ef9cd4d4bb2aa69b960da84c9c0aa6d Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 3 Mar 2022 14:45:54 -0500 Subject: flowgraph block iter fixed, resolves #3001 --- python/flowgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/flowgraph.py b/python/flowgraph.py index 165dd2b7..b1a30dbb 100644 --- a/python/flowgraph.py +++ b/python/flowgraph.py @@ -134,7 +134,7 @@ class FlowGraphNode: addr = lines[i].addr if (lines[i].instrIndex != 0xffffffffffffffff) and (block is not None) and hasattr(block, 'il_function'): - il_instr = block.__dict__['il_function'][lines[i].instrIndex] + il_instr = block.il_function[lines[i].instrIndex] else: il_instr = None tokens = function.InstructionTextToken._from_core_struct(lines[i].tokens, lines[i].count) @@ -219,7 +219,7 @@ class FlowGraphNode: for i in range(0, count.value): addr = lines[i].addr if (lines[i].instrIndex != 0xffffffffffffffff) and (block is not None) and hasattr(block, 'il_function'): - il_instr = block.__dict__['il_function'][lines[i].instrIndex] + il_instr = block.il_function[lines[i].instrIndex] else: il_instr = None color = highlight.HighlightColor._from_core_struct(lines[i].highlight) -- cgit v1.3.1