minor: assert that state is not null

replaces #4016
This commit is contained in:
Yann Collet
2025-01-18 13:08:04 -08:00
parent 053e4bef20
commit e8de8085f4
+1
View File
@@ -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,