File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,6 @@ cdef class IgzipDecompressor:
298
298
view_bitbuffer(& self .stream)
299
299
300
300
cdef unsigned char * decompress_buf(self , Py_ssize_t max_length):
301
- cdef Py_ssize_t data_size = 0
302
301
cdef unsigned char * obuf = NULL
303
302
cdef Py_ssize_t obuflen = DEF_BUF_SIZE_I
304
303
cdef int err
@@ -312,17 +311,14 @@ cdef class IgzipDecompressor:
312
311
break
313
312
arrange_input_buffer(& self .stream, & self .avail_in_real)
314
313
err = isal_inflate(& self .stream)
315
- data_size = self .stream.next_out - obuf
314
+ self .avail_in_real + = self .stream.avail_in
316
315
if err != ISAL_DECOMP_OK:
317
316
check_isal_inflate_rc(err)
318
317
if self .stream.block_state == ISAL_BLOCK_FINISH:
319
318
self .eof = 1
320
319
break
321
320
elif self .avail_in_real == 0 :
322
321
break
323
- elif self .stream.avail_out == 0 :
324
- if data_size == max_length:
325
- break
326
322
return obuf
327
323
328
324
def decompress (self , data , Py_ssize_t max_length = 0 ):
You can’t perform that action at this time.
0 commit comments