]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed chunksize not being initialized when using inflateBack.
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 7 Jul 2020 00:23:01 +0000 (17:23 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 10 Jul 2020 13:44:56 +0000 (15:44 +0200)
infback.c

index 2802ada2ca5d3bdf9eae1ee2b8dc15270e06a035..5691c2bfed9e37bcd868b5626e2d2b16003819c7 100644 (file)
--- a/infback.c
+++ b/infback.c
@@ -16,6 +16,7 @@
 #include "inflate.h"
 #include "inffast.h"
 #include "inflate_p.h"
+#include "functable.h"
 
 /*
    strm provides memory allocation functions in zalloc and zfree, or
@@ -50,6 +51,7 @@ int32_t ZEXPORT PREFIX(inflateBackInit_)(PREFIX3(stream) *strm, int32_t windowBi
     state->window = window;
     state->wnext = 0;
     state->whave = 0;
+    state->chunksize = functable.chunksize();
     return Z_OK;
 }