]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix a nullptr dereference in ZSTD_createCDict_advanced2() 3847/head
authorMichał Chojnowski <michal.chojnowski@scylladb.com>
Sat, 16 Dec 2023 11:32:52 +0000 (12:32 +0100)
committerMichał Chojnowski <michal.chojnowski@scylladb.com>
Sat, 16 Dec 2023 12:02:18 +0000 (13:02 +0100)
commit9a3b17c4d61f00e22997d946f422533564812fe3
tree59e58e30c6a87cf06b18d9a80df8ffb8cd2b1fcc
parent86ead9f4a444a1017c951dd8681df7a284e0b54c
Fix a nullptr dereference in ZSTD_createCDict_advanced2()

If the relevant allocation returns NULL, ZSTD_createCDict_advanced_internal()
will return NULL. But ZSTD_createCDict_advanced2() doesn't check for
this and attempts to use the returned pointer anyway, which leads to
a segfault.
lib/compress/zstd_compress.c