]> git.ipfire.org Git - thirdparty/zstd.git/commit
[lib] Fix off-by-one error in repcode checks
authorNick Terrell <terrelln@fb.com>
Thu, 13 May 2021 22:51:15 +0000 (15:51 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 14 May 2021 00:05:59 +0000 (17:05 -0700)
commit10b35b312b0280674c02b9c9227e2fff766410a9
treebd1b6002bddd19390acd30636ab222c689a66c48
parent91c9a247b67374b74753a7d3dcc8999db710b139
[lib] Fix off-by-one error in repcode checks

The repcode checks disallowed repcodes that are equal to `windowLow`.
This is slightly inefficient, but isn't a problem on its own. Together
with the next commit, it cause non-determinism.
lib/compress/zstd_double_fast.c
lib/compress/zstd_fast.c
lib/compress/zstd_lazy.c