]> git.ipfire.org Git - thirdparty/zstd.git/commit
[dictBuilder] Fix deadlock in *COVER error case
authorNick Terrell <terrelln@fb.com>
Tue, 27 Aug 2019 01:19:29 +0000 (18:19 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 27 Aug 2019 01:19:29 +0000 (18:19 -0700)
commit0932de54bc0dbc6d29008b9e6087b88721ca8bb0
treeec74084131abe36096cba5215edd31377aba2854
parentd0750a1c9c9bfae204ada9ab6e35c29401629457
[dictBuilder] Fix deadlock in *COVER error case

The COVER and FASTCOVER dictionary builders can deadlock when
dictionary construction errors, likely because there are too few
samples, or too few distinct dmers. The deadlock only occurs when
there are errors.

Fixes #1746.
lib/dictBuilder/cover.c