linux/lib/zstd
Sergey Senozhatsky f3c11cf5ca lib: zstd: fix null-deref in ZSTD_createCDict_advanced2()
ZSTD_createCDict_advanced2() must ensure that
ZSTD_createCDict_advanced_internal() has successfully allocated cdict. 
customMalloc() may be called under low memory condition and may be unable
to allocate workspace for cdict.

Link: https://lkml.kernel.org/r/20240902105656.1383858-4-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Nick Terrell <terrelln@fb.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-09-09 16:39:06 -07:00
..
common zstd: Fix array-index-out-of-bounds UBSAN warning 2023-11-14 17:12:52 -08:00
compress lib: zstd: fix null-deref in ZSTD_createCDict_advanced2() 2024-09-09 16:39:06 -07:00
decompress lib: zstd: Backport fix for in-place decompression 2023-03-06 15:51:44 -08:00
decompress_sources.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
Makefile zstd: Move zstd-common module exports to zstd_common_module.c 2022-10-24 12:12:26 -07:00
zstd_common_module.c zstd: Move zstd-common module exports to zstd_common_module.c 2022-10-24 12:12:26 -07:00
zstd_compress_module.c lib: zstd: export API needed for dictionary support 2024-09-09 16:39:06 -07:00
zstd_decompress_module.c lib: zstd: export API needed for dictionary support 2024-09-09 16:39:06 -07:00