Skip to content

Commit ad4ae20

Browse files
nmoinvazDead2
authored andcommitted
Fixed use of uninitialized value in test_deflate_copy when deflateCopy is called. #438
1 parent 9fbe28a commit ad4ae20

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/example.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ void test_deflate_copy(unsigned char *compr, size_t comprLen)
601601
int err;
602602
size_t len = strlen(hello)+1;
603603

604+
memset(&c_stream, 0, sizeof(c_stream));
605+
604606
c_stream.zalloc = zalloc;
605607
c_stream.zfree = zfree;
606608
c_stream.opaque = (voidpf)0;

0 commit comments

Comments
 (0)