]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed use of uninitialized value state in makefixed. #437
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Mon, 7 Oct 2019 01:54:05 +0000 (18:54 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 7 Oct 2019 07:46:13 +0000 (09:46 +0200)
tools/makefixed.c

index 0f983bd5d36af06baecf8c14561efc77c34a4f4c..66f4355dc173009498cc575cd2b5610f5b2cc2f8 100644 (file)
@@ -44,6 +44,7 @@ void makefixed(void) {
     unsigned low, size;
     struct inflate_state state;
 
+    memset(&state, 0, sizeof(state));
     buildfixedtables(&state);
     puts("    /* inffixed.h -- table for decoding fixed codes");
     puts("     * Generated automatically by makefixed().");