about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-01-07 10:13:22 +0100
committerGitHub <noreply@github.com>2020-01-07 10:13:22 +0100
commitca79614f9e7cec641aa71e33d5a567ba2cd7cbc3 (patch)
tree1b040dccc456d774f42d957ba4c1146bd9142376
parent667bc58f573b98a87b27d0613ebf58c3fc8d2371 (diff)
parent6bfa31c2998db8cef2f4be13eb77d3c83f5afe06 (diff)
downloadmiasm-ca79614f9e7cec641aa71e33d5a567ba2cd7cbc3.tar.gz
miasm-ca79614f9e7cec641aa71e33d5a567ba2cd7cbc3.zip
Merge pull request #1120 from carolineLe/fix_pe_loader
Loader/PE: Initialize entry.originalfirstthunks if empty
-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,