From: Phil Vachon Date: Mon, 30 Jan 2017 14:32:29 +0000 (+0100) Subject: Initialize block_open state X-Git-Tag: 1.9.9-b1~695 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a5149c6a8309c83ea81bce95279a41f31c730c;p=thirdparty%2Fzlib-ng.git Initialize block_open state On deflation context creation, initialize the block_open state to 0 to ensure that no uninitialized values are used. --- diff --git a/deflate.c b/deflate.c index ce4b0e6ab..21d4f414c 100644 --- a/deflate.c +++ b/deflate.c @@ -330,6 +330,7 @@ int ZEXPORT deflateInit2_(z_stream *strm, int level, int method, int windowBits, s->level = level; s->strategy = strategy; s->method = (unsigned char)method; + s->block_open = 0; return deflateReset(strm); }