From: Nathan Moinvaziri Date: Sun, 6 Oct 2019 17:14:42 +0000 (-0700) Subject: Fixed use of uninitialized value in test_deflate_copy when deflateCopy is called... X-Git-Tag: 1.9.9-b1~409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad4ae2013bd92c11113afb0d1f6db3ba1724896c;p=thirdparty%2Fzlib-ng.git Fixed use of uninitialized value in test_deflate_copy when deflateCopy is called. #438 --- diff --git a/test/example.c b/test/example.c index e69aaafd..cb9e87a3 100644 --- a/test/example.c +++ b/test/example.c @@ -601,6 +601,8 @@ void test_deflate_copy(unsigned char *compr, size_t comprLen) int err; size_t len = strlen(hello)+1; + memset(&c_stream, 0, sizeof(c_stream)); + c_stream.zalloc = zalloc; c_stream.zfree = zfree; c_stream.opaque = (voidpf)0;