File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ cdef class Decompress:
463
463
try :
464
464
# This loop reads all the input bytes. If there are no input bytes
465
465
# anymore the output is written.
466
- while self .stream.block_state ! = ISAL_BLOCK_FINISH and ibuflen ! = 0 and not last_round :
466
+ while True :
467
467
arrange_input_buffer(& self .stream, & ibuflen)
468
468
while (self .stream.avail_out == 0 or self .stream.avail_in != 0 ):
469
469
self .stream.next_out = obuf # Reset output buffer.
@@ -488,6 +488,8 @@ cdef class Decompress:
488
488
out.append(obuf[:bytes_written])
489
489
if self .stream.block_state == ISAL_BLOCK_FINISH or last_round:
490
490
break
491
+ if self .stream.block_state == ISAL_BLOCK_FINISH or ibuflen == 0 :
492
+ break
491
493
self .save_unconsumed_input(buffer )
492
494
return b" " .join(out)
493
495
finally :
You can’t perform that action at this time.
0 commit comments