]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Initialize functable earlier, during inflateInit
authorVladislav Shchapov <vladislav@shchapov.ru>
Sun, 17 Dec 2023 12:14:17 +0000 (17:14 +0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 21 Dec 2023 15:12:00 +0000 (16:12 +0100)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
inflate.c

index 0c9d499f63a8f6a6823a16523e9aa97132372956..af5abf11a51bb3049944e4a70d90feb0ccfcadcb 100644 (file)
--- a/inflate.c
+++ b/inflate.c
@@ -139,6 +139,9 @@ int32_t ZNG_CONDEXPORT PREFIX(inflateInit2)(PREFIX3(stream) *strm, int32_t windo
     int32_t ret;
     struct inflate_state *state;
 
+    /* Initialize functable earlier. */
+    functable.force_init();
+
     if (strm == NULL)
         return Z_STREAM_ERROR;
     strm->msg = NULL;                   /* in case we return an error */