about summary refs log tree commit diff stats
path: root/example/sandbox_pe.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/sandbox_pe.py')
-rw-r--r--example/sandbox_pe.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/sandbox_pe.py b/example/sandbox_pe.py
index 4c1e9b17..75e9b306 100644
--- a/example/sandbox_pe.py
+++ b/example/sandbox_pe.py
@@ -106,6 +106,8 @@ def run_bin(my_eip, known_blocs, code_blocs_mem_range):
 
         if not my_eip in known_blocs:
             updt_bloc_emul(known_blocs, in_str, my_eip, symbol_pool, code_blocs_mem_range, log_regs = log_regs, log_mn = log_mn)
+            vm_reset_exception()
+
         try:
             my_eip = vm_exec_blocs(my_eip, known_blocs)
         except KeyboardInterrupt: