Skip to content

Commit

Permalink
Merge pull request ReFirmLabs#269 from ulidtko/patch-1
Browse files Browse the repository at this point in the history
Fix extra data mistakingly "extracted" from raw Deflate streams
  • Loading branch information
devttys0 authored Apr 24, 2017
2 parents 668d84d + 46c4fa7 commit e4e21e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binwalk/modules/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def extractor(self, file_name):
if not data or dlen == 0:
break
else:
in_data += data
in_data += data[:dlen]

try:
out_data = zlib.decompress(binwalk.core.compat.str2bytes(in_data), -15)
Expand Down

0 comments on commit e4e21e8

Please sign in to comment.