We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0a179d commit affa711Copy full SHA for affa711
contrib/seekable_format/zstdseek_decompress.c
@@ -252,6 +252,7 @@ size_t ZSTD_seekable_free(ZSTD_seekable* zs)
252
253
ZSTD_seekTable* ZSTD_seekTable_create_fromSeekable(const ZSTD_seekable* zs)
254
{
255
+ if (zs->seekTable.entries == NULL) return NULL;
256
ZSTD_seekTable* const st = (ZSTD_seekTable*)malloc(sizeof(ZSTD_seekTable));
257
if (st==NULL) return NULL;
258
0 commit comments