Describe the bug
ZSTD_seekTable_create_fromSeekable causes a segmentation fault when called with a ZSTD_seekable that is not initialized.
To Reproduce
Steps to reproduce the behavior:
ZSTD_seekable* const stream = ZSTD_seekable_create();
ZSTD_seekTable* const zst = ZSTD_seekTable_create_fromSeekable(stream);
Expected behavior
ZSTD_seekTable_create_fromSeekable returns a NULL pointer.
Describe the bug
ZSTD_seekTable_create_fromSeekablecauses a segmentation fault when called with aZSTD_seekablethat is not initialized.To Reproduce
Steps to reproduce the behavior:
ZSTD_seekable* const stream = ZSTD_seekable_create();ZSTD_seekTable* const zst = ZSTD_seekTable_create_fromSeekable(stream);Expected behavior
ZSTD_seekTable_create_fromSeekablereturns a NULL pointer.