]> git.ipfire.org Git - thirdparty/zstd.git/commit
Use Working Ctx Logs when not in DMS Mode
authorW. Felix Handte <w@felixhandte.com>
Thu, 13 Sep 2018 18:13:08 +0000 (11:13 -0700)
committerW. Felix Handte <w@felixhandte.com>
Sat, 29 Sep 2018 00:12:54 +0000 (17:12 -0700)
commitbad74c47819fe8aa635b9f10abafb80c6987697d
tree460420d7ea35b58ad7d8607d30492336abea0233
parentc38acff94f296114f84464387f94f51b21b22d3a
Use Working Ctx Logs when not in DMS Mode

We pre-hash the ptr for the dict match state sometimes. When that actually
happens, a hashlog of 0 can produce undefined behavior (right shift a long
long by 64). Only applies to unoptimized compilations, since when
optimizations are applied, those hash operations are dropped when we're not
actually in dms mode.
lib/compress/zstd_double_fast.c
lib/compress/zstd_fast.c
lib/compress/zstd_opt.c