forked from mirrors/pyinstxtractor
Merge pull request #70 from maximevince/master
Do not abort after the first extraction error
This commit is contained in:
commit
044812c1f0
1 changed files with 5 additions and 1 deletions
|
|
@ -279,7 +279,11 @@ class PyInstArchive:
|
|||
data = self.fPtr.read(entry.cmprsdDataSize)
|
||||
|
||||
if entry.cmprsFlag == 1:
|
||||
data = zlib.decompress(data)
|
||||
try:
|
||||
data = zlib.decompress(data)
|
||||
except zlib.error:
|
||||
print('[!] Error : Failed to decompress {0}'.format(entry.name))
|
||||
continue
|
||||
# Malware may tamper with the uncompressed size
|
||||
# Comment out the assertion in such a case
|
||||
assert len(data) == entry.uncmprsdDataSize # Sanity Check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue