]> git.ipfire.org Git - thirdparty/zstd.git/commit
Don't `size -= 1` in ZSTD_adjustCParams() 878/head
authorNick Terrell <terrelln@fb.com>
Sat, 30 Sep 2017 21:17:32 +0000 (14:17 -0700)
committerNick Terrell <terrelln@fb.com>
Sat, 30 Sep 2017 21:20:06 +0000 (14:20 -0700)
commitc5d6dde502e4e30c7de4476e82b459361fe2f486
tree5413af69563137cad1e3c601f46e2716a0a0bc25
parentee1ed78fcb3d53182c944940e16e697c94087a8b
Don't `size -= 1` in ZSTD_adjustCParams()

The window size could end up too small if the source size is 2^n + 1.

Credit to OSS-Fuzz
lib/compress/zstd_compress.c