From: Yann Collet Date: Sat, 18 Jan 2025 21:08:04 +0000 (-0800) Subject: minor: assert that state is not null X-Git-Tag: v1.5.7^2~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8de8085f4a75fe46021b82851b72b07bb824c2b;p=thirdparty%2Fzstd.git minor: assert that state is not null replaces #4016 --- diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 402d75349..9eb98327e 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,