about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCaroline Leman <caroline.leman@ssi.gouv.fr>2020-01-06 17:51:43 +0100
committerCaroline Leman <caroline.leman@ssi.gouv.fr>2020-01-06 17:51:43 +0100
commit6bfa31c2998db8cef2f4be13eb77d3c83f5afe06 (patch)
tree1b040dccc456d774f42d957ba4c1146bd9142376
parent667bc58f573b98a87b27d0613ebf58c3fc8d2371 (diff)
downloadmiasm-6bfa31c2998db8cef2f4be13eb77d3c83f5afe06.tar.gz
miasm-6bfa31c2998db8cef2f4be13eb77d3c83f5afe06.zip
Loader/PE: Initialize entry.originalfirstthunks if empty
Diffstat (limited to '')
-rw-r--r--miasm/loader/pe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/loader/pe.py b/miasm/loader/pe.py
index 6ab6451e..f402e980 100644
--- a/miasm/loader/pe.py
+++ b/miasm/loader/pe.py
@@ -887,7 +887,7 @@ class DirDelay(CStruct):
                                                          addr,
                                                          Rva)
             else:
-                entry.originalfirstthunks
+                entry.originalfirstthunks = None
 
             if entry.firstthunk:
                 entry.firstthunks = struct_array(self, raw,