]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix CDict Attachment to Handle CDicts with Non-Zero Starts 1269/head
authorW. Felix Handte <w@felixhandte.com>
Wed, 8 Aug 2018 00:05:05 +0000 (17:05 -0700)
committerW. Felix Handte <w@felixhandte.com>
Wed, 8 Aug 2018 01:14:14 +0000 (18:14 -0700)
commit2ca7c69167e17006f867ab550408b6e0487a81e7
treed8830a176246c08802410e37d149d1a5a0b846db
parent5808027abf693dfe72738029ad1f6f60f5c85462
Fix CDict Attachment to Handle CDicts with Non-Zero Starts

CDicts were previously guaranteed to be generated with `lowLimit=dictLimit=0`.
This is no longer true, and so the old length and index calculations are no
longer valid. This diff fixes them to handle non-zero start indices in CDicts.
lib/compress/zstd_compress.c