From f634a1a89a9283404c6ac0b09db238d50d669701 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Mon, 9 Jun 2025 11:00:16 -0700 Subject: [PATCH] Fix crash in zlib-intel when window allocation fails --- src/native/external/zlib-intel/inflate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/external/zlib-intel/inflate.c b/src/native/external/zlib-intel/inflate.c index 96306ef76570b7..47e3a25e4672b7 100644 --- a/src/native/external/zlib-intel/inflate.c +++ b/src/native/external/zlib-intel/inflate.c @@ -251,7 +251,7 @@ int stream_size; if (state->window == Z_NULL) { ZFREE(strm, state); strm->state = Z_NULL; - ret = Z_MEM_ERROR; + return Z_MEM_ERROR; } } state->whave = 0; @@ -727,7 +727,7 @@ int flush; if (state->window == Z_NULL) { ZFREE(strm, state); strm->state = Z_NULL; - ret = Z_MEM_ERROR; + return Z_MEM_ERROR; } LOAD(); }