]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed use of uninitialized value in test_deflate_copy when deflateCopy is called...
authorNathan Moinvaziri <nathan@nathanm.com>
Sun, 6 Oct 2019 17:14:42 +0000 (10:14 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 7 Oct 2019 07:49:36 +0000 (09:49 +0200)
test/example.c

index e69aaafdd59b1599f9159980736346429cef2cb5..cb9e87a3908c741c3c24172e3de9157dad4e1ec6 100644 (file)
@@ -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;