diff options
| author | serpilliere <devnull@localhost> | 2011-11-17 22:02:29 +0100 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2011-11-17 22:02:29 +0100 |
| commit | 10149e4e7ebff93b4cef05700a7db9ef95df1167 (patch) | |
| tree | c4f4b9c8d8b33e93a4b20ef211f1e3da76f0b5c3 | |
| parent | 3b59992ee155518276ebf366880c967b5efdf5bf (diff) | |
| download | miasm-10149e4e7ebff93b4cef05700a7db9ef95df1167.tar.gz miasm-10149e4e7ebff93b4cef05700a7db9ef95df1167.zip | |
fix uncomplete graph pos
| -rw-r--r-- | example/sandbox_pe.py | 4 | ||||
| -rwxr-xr-x | miasm/graph/graph_qt.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/example/sandbox_pe.py b/example/sandbox_pe.py index 75e9b306..fe3aa390 100644 --- a/example/sandbox_pe.py +++ b/example/sandbox_pe.py @@ -90,7 +90,7 @@ log_regs = True log_mn = log_regs def run_bin(my_eip, known_blocs, code_blocs_mem_range): global log_regs, log_mn - while my_eip != 0x1337beef: + while my_eip != 0x1337beef: #dyn dll funcs if my_eip in runtime_dll.fad2cname: @@ -120,9 +120,7 @@ def run_bin(my_eip, known_blocs, code_blocs_mem_range): known_blocs, code_blocs_mem_range = updt_automod_code(known_blocs) else: raise ValueError("except at", hex(my_eip)) - - print "start emulation" run_bin(ep, known_blocs, code_blocs_mem_range) dump_raw_e(e) diff --git a/miasm/graph/graph_qt.py b/miasm/graph/graph_qt.py index 1f806076..adb4fe50 100755 --- a/miasm/graph/graph_qt.py +++ b/miasm/graph/graph_qt.py @@ -955,6 +955,9 @@ class MainWindow(QtGui.QWidget): txt = txt.replace('\t', ' '*4) e = node_asm_bb(txt, self) e.h = MyHighlighter(e) + if not "g_pos" in b.__dict__: + print "WARNING: unset bloc pos", b.label + continue e.setpos(*b.g_pos) wproxy = self.scene.addWidget(e) self.scene_blocs.append(wproxy) |