We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 128cb96 + c19cdbb commit 044812cCopy full SHA for 044812c
pyinstxtractor.py
@@ -279,7 +279,11 @@ def extractFiles(self):
279
data = self.fPtr.read(entry.cmprsdDataSize)
280
281
if entry.cmprsFlag == 1:
282
- data = zlib.decompress(data)
+ try:
283
+ data = zlib.decompress(data)
284
+ except zlib.error:
285
+ print('[!] Error : Failed to decompress {0}'.format(entry.name))
286
+ continue
287
# Malware may tamper with the uncompressed size
288
# Comment out the assertion in such a case
289
assert len(data) == entry.uncmprsdDataSize # Sanity Check
0 commit comments