]> git.ipfire.org Git - thirdparty/zstd.git/commit
[Bugfix] row hash tries to match position 0 (#3548)
authorYonatan Komornik <11005061+yoniko@users.noreply.github.com>
Mon, 13 Mar 2023 17:00:03 +0000 (10:00 -0700)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 17:00:03 +0000 (10:00 -0700)
commita91e91d61412e0a83e370028d62e7a58dfa85bd0
treebeff9329829498038f3b6e14a9bb54624638a0cb
parent33e39094e7d6680544290a41ff8f8aa34517bc1f
[Bugfix] row hash tries to match position 0 (#3548)

#3543 decreases the size of the tagTable by a factor of 2, which requires using the first tag position in each row for head position instead of a tag.
Although position 0 stopped being a valid match, it still persisted in mask calculation resulting in the matches loops possibly terminating before it should have. The fix skips position 0 to solve this problem.
lib/compress/zstd_lazy.c
tests/regression/results.csv