Skip to content

Commit 82916dc

Browse files
committed
Fix unconsumed tail showing up
1 parent 8f739ef commit 82916dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/isal/isal_zlib.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ cdef class Decompress:
572572
# we assume the bitbuffer data is already added.
573573
self.unused_data = self._view_bitbuffer()
574574
self.unused_data += new_data
575+
self.unconsumed_tail = b"" # When there is unused_data unconsumed tail should be b""
575576
elif self.stream.avail_in > 0 or self.unconsumed_tail:
576577
left_size = <unsigned char*>data.buf + data.len - self.stream.next_in
577578
new_data = PyBytes_FromStringAndSize(<char *>self.stream.next_in, left_size)

0 commit comments

Comments
 (0)