Commit 602517839a562f747fd92f5039b35711015372af

Authored by Philippe Lagadec
Committed by GitHub
2 parents 34a66737 2fe43ee6

Merge pull request #284 from CalebFenton/detect_flash_python3

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: