Skip to content

Commit 9fbe28a

Browse files
nmoinvazDead2
authored andcommitted
Fixed use of uninitialized value state in makefixed. #437
1 parent eaace15 commit 9fbe28a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/makefixed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void makefixed(void) {
4444
unsigned low, size;
4545
struct inflate_state state;
4646

47+
memset(&state, 0, sizeof(state));
4748
buildfixedtables(&state);
4849
puts(" /* inffixed.h -- table for decoding fixed codes");
4950
puts(" * Generated automatically by makefixed().");

0 commit comments

Comments
 (0)