Z_NULL
strm_decompress.next_in = Z_NULL;
if (buf == Z_NULL)
if (version == Z_NULL || version[0] != my_version[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (s == Z_NULL) return Z_MEM_ERROR;
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
s->pending_buf == Z_NULL) {
if (strm == Z_NULL || strm->state == Z_NULL) {
strm->msg = Z_NULL; /* use zfree if we ever allocate msg dynamically */
strm->adler = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL ||
if (strm->next_out == Z_NULL ||
(strm->next_in == Z_NULL && strm->avail_in != 0) ||
strm->adler = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->state = Z_NULL;
(charf *)Z_NULL), \
if (strm == Z_NULL || strm->state == Z_NULL)
if (state->window != Z_NULL) free(state->window);
strm->state = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
state->window = Z_NULL;
if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL; /* in case we return an error */
if (state == Z_NULL) return Z_MEM_ERROR;
state->window = Z_NULL;
strm->state = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
(strm->next_in == Z_NULL && strm->avail_in != 0))
strm->adler = state->check = adler32(0L, Z_NULL, 0);
strm->adler = state->check = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->state = Z_NULL;
if (source == Z_NULL || dest == Z_NULL || source->state == Z_NULL)
if (ds == Z_NULL) return Z_MEM_ERROR;
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
ds->pending_buf == Z_NULL) {
if (strm == Z_NULL || strm->state == Z_NULL) return 0;
(charf *)Z_NULL), \
if (z == Z_NULL || z->state == Z_NULL)
z->msg = Z_NULL;
if (z == Z_NULL || z->state == Z_NULL || z->zfree == Z_NULL)
if (z->state->blocks != Z_NULL)
z->state = Z_NULL;
if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
if (z == Z_NULL)
z->msg = Z_NULL;
if (z->zalloc == Z_NULL)
if (z->zfree == Z_NULL) z->zfree = zcfree;
ZALLOC(z,1,sizeof(struct internal_state))) == Z_NULL)
z->state->blocks = Z_NULL;
inflate_blocks_new(z, z->state->nowrap ? Z_NULL : adler32, (uInt)1 << w))
== Z_NULL)
if (z == Z_NULL || z->state == Z_NULL || z->next_in == Z_NULL || f < 0)
if (z == Z_NULL || z->state == Z_NULL || z->state->mode != DICT0)
if (z == Z_NULL || z->state == Z_NULL)
if (s->checkfn != Z_NULL)
if (s->checkfn != Z_NULL)
z->adler = s->check = (*s->checkfn)(0L, Z_NULL, 0);
(z,1,sizeof(struct inflate_blocks_state))) == Z_NULL)
if ((s->window = (Bytef *)ZALLOC(z, 1, w)) == Z_NULL)
return Z_NULL;
if (s->sub.decode.codes == Z_NULL)
s->sub.decode.tl = Z_NULL; /* don't try to free these */
s->sub.decode.td = Z_NULL;
if ((s->sub.trees.blens = (uIntf*)ZALLOC(z, t, sizeof(uInt))) == Z_NULL)
s->sub.trees.tb = Z_NULL;
if ((c = inflate_codes_new(bl, bd, tl, td, z)) == Z_NULL)
if (s->checkfn != Z_NULL)
*t = (inflate_huft *)Z_NULL;
u[0] = (inflate_huft *)Z_NULL; /* just to keep compilers happy */
q = (inflate_huft *)Z_NULL; /* ditto */
(zs,z + 1,sizeof(inflate_huft))) == Z_NULL)
*(t = &(q->next)) = Z_NULL;
r = huft_build(c, 19, 19, (uIntf*)Z_NULL, (uIntf*)Z_NULL, tb, bb, z);
z.zfree = Z_NULL;
p = Z_NULL;
while (q != Z_NULL)
while (p != Z_NULL)
ZALLOC(z,1,sizeof(struct inflate_codes_state))) != Z_NULL)
if (s->checkfn != Z_NULL)
if (p != Z_NULL) {
if (s->checkfn != Z_NULL)
if (p != Z_NULL) {
if (buf == Z_NULL) return 1L;
if (version == Z_NULL || version[0] != my_version[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (strm->zalloc == Z_NULL) {
if (strm->zfree == Z_NULL) strm->zfree = zcfree;
if (s == Z_NULL) return Z_MEM_ERROR;
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
s->pending_buf == Z_NULL) {
if (strm == Z_NULL || strm->state == Z_NULL || dictionary == Z_NULL)
if (strm == Z_NULL || strm->state == Z_NULL ||
strm->zalloc == Z_NULL || strm->zfree == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL; /* use zfree if we ever allocate msg dynamically */
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm->next_out != Z_NULL) {
if (strm == Z_NULL || strm->state == Z_NULL ||
if ((strm->next_in == Z_NULL && strm->avail_in != 0) ||
strm_decompress.next_in = Z_NULL;
if (buf == Z_NULL)
if (version == Z_NULL || version[0] != my_version[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (s == Z_NULL) return Z_MEM_ERROR;
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
s->pending_buf == Z_NULL) {
if (strm == Z_NULL || strm->state == Z_NULL) {
strm->msg = Z_NULL; /* use zfree if we ever allocate msg dynamically */
strm->adler = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL ||
if (strm->next_out == Z_NULL ||
(strm->next_in == Z_NULL && strm->avail_in != 0) ||
strm->adler = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->state = Z_NULL;
(charf *)Z_NULL), \
if (strm == Z_NULL || strm->state == Z_NULL)
if (state->window != Z_NULL) kfree(state->window, C_ZLIB_BUFFER_INFLATE);
strm->state = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
state->window = Z_NULL;
if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL; /* in case we return an error */
if (state == Z_NULL) return Z_MEM_ERROR;
state->window = Z_NULL;
strm->state = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
(strm->next_in == Z_NULL && strm->avail_in != 0))
strm->adler = state->check = adler32(0L, Z_NULL, 0);
strm->adler = state->check = adler32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
crc = crc32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
uLong crc = crc32(0L, Z_NULL, 0);
crc = crc32(0L, Z_NULL, 0);
crc = crc32(0L, Z_NULL, 0);
crc = crc32(0L, Z_NULL, 0);
crc = crc32(0L, Z_NULL, 0);
z.zalloc = Z_NULL;
z.zfree = Z_NULL;
crc = crc32(0L, Z_NULL, 0);
crc = crc32(0L, Z_NULL, 0);
strm_decompress.next_in = Z_NULL;
if (buf == Z_NULL)
if (version == Z_NULL || version[0] != my_version[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (s == Z_NULL) return Z_MEM_ERROR;
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
s->pending_buf == Z_NULL) {
if (strm == Z_NULL || strm->state == Z_NULL) {
strm->msg = Z_NULL; /* use zfree if we ever allocate msg dynamically */
strm->adler = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL ||
if (strm->next_out == Z_NULL ||
(strm->next_in == Z_NULL && strm->avail_in != 0) ||
strm->adler = adler32(0L, Z_NULL, 0);
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->state = Z_NULL;
(charf *)Z_NULL), \
if (strm == Z_NULL || strm->state == Z_NULL)
if (state->window != Z_NULL) kfree(state->window, C_ZLIB_BUFFER_INFLATE);
strm->state = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
state->window = Z_NULL;
if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
if (strm == Z_NULL) return Z_STREAM_ERROR;
strm->msg = Z_NULL; /* in case we return an error */
if (state == Z_NULL) return Z_MEM_ERROR;
state->window = Z_NULL;
strm->state = Z_NULL;
if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
(strm->next_in == Z_NULL && strm->avail_in != 0))
strm->adler = state->check = adler32(0L, Z_NULL, 0);
strm->adler = state->check = adler32(0L, Z_NULL, 0);