]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix 44239 3040/head
authorYann Collet <cyan@fb.com>
Mon, 31 Jan 2022 17:34:04 +0000 (09:34 -0800)
committerYann Collet <cyan@fb.com>
Tue, 1 Feb 2022 18:49:38 +0000 (10:49 -0800)
commitcad9f8d5f9c451b1cc8ce00a16c125e3d2ffc418
tree12585405a9ffa5327d6b9cae09418e6abb51a68a
parent26c36fafb97e5eb45d73bc7489f2efb144b801a8
fix 44239

credit to oss-fuzz

This issue could happen when using the new Sequence Compression API in Explicit Delimiter Mode
with a too small dstCapacity.
In which case, there was one place where the buffer size wasn't checked.
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstd_compress_literals.c