Kaydet (Commit) a74ef66a authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Must update the available space in the output buffer after

realloc. (Fixed in PyZlib_unflush.)
üst 00b299af
......@@ -449,7 +449,9 @@ PyZlib_objdecompress(self, args)
self->zst.next_out=buf+length;
self->zst.avail_out=ADDCHUNK;
length += ADDCHUNK;
err=inflate(&(self->zst), Z_NO_FLUSH);
} while (self->zst.avail_in!=0 && err==Z_OK);
if (err!=Z_OK && err!=Z_STREAM_END)
{
......@@ -547,6 +549,7 @@ PyZlib_unflush(self, args)
return NULL;
}
self->zst.next_out=buf+length;
self->zst.avail_out = ADDCHUNK;
length += ADDCHUNK;
err=inflate(&(self->zst), Z_FINISH);
} while (err==Z_OK);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment