diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2019-10-06 10:14:42 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-10-07 09:49:36 +0200 |
commit | ad4ae2013bd92c11113afb0d1f6db3ba1724896c (patch) | |
tree | e25c5a9599783b296fb72aa7b7d70b39b1363c2e /test/example.c | |
parent | 9fbe28aeaf3877b9cb4920d08f53abf6bd32c4f8 (diff) |
Fixed use of uninitialized value in test_deflate_copy when deflateCopy is called. #438
Diffstat (limited to 'test/example.c')
-rw-r--r-- | test/example.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c index e69aaaf..cb9e87a 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; |