From e8de8085f4a75fe46021b82851b72b07bb824c2b Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 18 Jan 2025 13:08:04 -0800 Subject: [PATCH] minor: assert that state is not null replaces #4016 --- lib/decompress/zstd_decompress.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 402d753490..9eb98327ef 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -2096,6 +2096,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB U32 someMoreWork = 1; DEBUGLOG(5, "ZSTD_decompressStream"); + assert(zds != NULL); RETURN_ERROR_IF( input->pos > input->size, srcSize_wrong,