]> git.ipfire.org Git - thirdparty/zstd.git/commit
prevent possible segfault when creating seek table 4201/head
authorRobert Rose <robert.rose@mailbox.org>
Sun, 24 Nov 2024 22:36:53 +0000 (23:36 +0100)
committerRobert Rose <robert.rose@mailbox.org>
Mon, 25 Nov 2024 07:57:25 +0000 (08:57 +0100)
commitb683c0dbe278f71e371376847deebd44fdcf392f
tree428b9d0df62ec9360cdf76efb2d5434b9604899b
parentb0a179d469680276adbd4007435989a6b7fd8b4f
prevent possible segfault when creating seek table

Add a check whether the seek table of a `ZSTD_seekable` is initialized
before creating a new seek table from it. Return `NULL`, if the check
fails.
contrib/seekable_format/zstdseek_decompress.c