From: Nathan Moinvaziri Date: Wed, 17 Jul 2019 03:00:33 +0000 (-0700) Subject: Fixed use of uninitialized value found by memory sanitizer and reported by @sebpop. X-Git-Tag: 1.9.9-b1~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f56596da84535f0c0967090d6cda7946a47388f;p=thirdparty%2Fzlib-ng.git Fixed use of uninitialized value found by memory sanitizer and reported by @sebpop. --- diff --git a/gzwrite.c b/gzwrite.c index 20e1d5c6..5b128055 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -26,6 +26,7 @@ static int gz_init(gz_state *state) { gz_error(state, Z_MEM_ERROR, "out of memory"); return -1; } + memset(state->in, 0, state->want << 1); /* only need output buffer and deflate state if compressing */ if (!state->direct) {