]> git.ipfire.org Git - thirdparty/zstd.git/commit
Shrink Clean Table Area When Copying Table Contents into Context
authorW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 15:18:45 +0000 (11:18 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 15:18:45 +0000 (11:18 -0400)
commit13e29a56de32e649e37c87ffc64f11e6be55edc1
tree3fff57cace525dab2da8c1bf58b0897a79469b83
parentedb3ad053eb0784b6bc7e03778758b513dc23852
Shrink Clean Table Area When Copying Table Contents into Context

The source matchState is potentially at a lower current index, which means
that any extra table space not overwritten by the copy may now contain
invalid indices. The simple solution is to unconditionally shrink the valid
table area to just the area overwritten.
lib/compress/zstd_compress.c