commit - f6a55b4019ef1be061bac7e315541d2389a7bd1d
commit + 9c8bf18964a7751ad34d51de04bf84f96956cc9e
blob - 833d2e05dfe063a461c46a6fa502c2f1144ba185
blob + ffefe8d4e6ed7e2b338aa97ea44f95f7faee3434
--- lib/inflate.c
+++ lib/inflate.c
if (zb.flags & GOT_INFLATE_F_HAVE_MORE) {
if (outbuf == NULL)
continue;
- zb.outlen = (nbuf * GOT_INFLATE_BUFSIZE) - *outlen;
newbuf = reallocarray(*outbuf, ++nbuf,
GOT_INFLATE_BUFSIZE);
if (newbuf == NULL) {
}
*outbuf = newbuf;
zb.outbuf = newbuf + *outlen;
+ zb.outlen = (nbuf * GOT_INFLATE_BUFSIZE) - *outlen;
}
} while (zb.flags & GOT_INFLATE_F_HAVE_MORE);
if (zb.flags & GOT_INFLATE_F_HAVE_MORE) {
if (outbuf == NULL)
continue;
- zb.outlen = (nbuf * GOT_INFLATE_BUFSIZE) - *outlen;
newbuf = reallocarray(*outbuf, ++nbuf,
GOT_INFLATE_BUFSIZE);
if (newbuf == NULL) {
}
*outbuf = newbuf;
zb.outbuf = newbuf + *outlen;
+ zb.outlen = (nbuf * GOT_INFLATE_BUFSIZE) - *outlen;
}
} while (zb.flags & GOT_INFLATE_F_HAVE_MORE);