]> git.ipfire.org Git - thirdparty/zstd.git/commit
[lib] Fix bug in loading LDM dictionary in MT mode
authorNick Terrell <terrelln@fb.com>
Thu, 14 May 2020 18:50:48 +0000 (11:50 -0700)
committerNick Terrell <terrelln@fb.com>
Thu, 14 May 2020 18:52:28 +0000 (11:52 -0700)
commitadd7ed2d4a09c94e5a5b3b80682a858cbb3ecba1
tree0809ae24a2461f5dcb29175cd7dcb2d729f4964e
parent0208eeccd65086b47b2e4c44a65079e75fec3e6e
[lib] Fix bug in loading LDM dictionary in MT mode

Exposed when loading a dictionary < LDM minMatch bytes in MT mode.

Test Plan:
```
CC=clang make -j zstreamtest MOREFLAGS="-O0 -fsanitize=address"
./zstreamtest -vv -i100000000 -t1 --newapi -s7065 -t3925297
```

TODO: Add an explicit test that loads a small dictionary in MT mode
lib/compress/zstd_compress.c
lib/compress/zstd_ldm.c