Commit 2fe43ee6657cb711a54d795568bd082a52d928df

Authored by Caleb Fenton
1 parent 34a66737

Improve detect_flash Python 3 compatibility

Showing 1 changed file with 1 additions and 1 deletions
oletools/oleid.py
@@ -117,7 +117,7 @@ def detect_flash (data): @@ -117,7 +117,7 @@ def detect_flash (data):
117 # Read Header 117 # Read Header
118 header = data[start:start+3] 118 header = data[start:start+3]
119 # Read Version 119 # Read Version
120 - ver = struct.unpack('<b', data[start+3])[0] 120 + ver = struct.unpack('<b', data[start+3:start+4])[0]
121 # Error check for version above 20 121 # Error check for version above 20
122 #TODO: is this accurate? (check SWF specifications) 122 #TODO: is this accurate? (check SWF specifications)
123 if ver > 20: 123 if ver > 20: