Skip to content

Commit 3ce72a3

Browse files
committed
Size buffer on basis of the data
1 parent 699ff8c commit 3ce72a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isal/igzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def decompress(data):
267267
gzip member is guaranteed to be present.
268268
"""
269269
fp = io.BytesIO(data)
270-
reader = _GzipReader(fp)
270+
reader = _GzipReader(fp, len(data))
271271
return reader.readall()
272272

273273

0 commit comments

Comments
 (0)