linux/lib/zstd/compress
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
..
clevels.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
fse_compress.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
hist.c
hist.h
huf_compress.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_compress_internal.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_compress_literals.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_compress_literals.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_compress_sequences.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_compress_sequences.h
zstd_compress_superblock.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_compress_superblock.h
zstd_compress.c lib: zstd: fix null-deref in ZSTD_createCDict_advanced2() 2024-09-09 16:39:06 -07:00
zstd_cwksp.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_double_fast.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_double_fast.h
zstd_fast.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_fast.h
zstd_lazy.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_lazy.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_ldm_geartab.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_ldm.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_ldm.h zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_opt.c zstd: import usptream v1.5.2 2022-10-24 12:12:32 -07:00
zstd_opt.h