]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix alignment of scratchBuffer in HUF_compressWeights() 2430/head
authorNick Terrell <terrelln@fb.com>
Thu, 17 Dec 2020 22:27:53 +0000 (14:27 -0800)
committerNick Terrell <terrelln@fb.com>
Thu, 17 Dec 2020 22:30:27 +0000 (14:30 -0800)
commitae85676d44baee3d12168a5c929347b3836f2cf2
tree266b8655ff33e3d611897dca4d43c2eaffd19293
parentce34dc39a07661df751a0a5792aed28bf47dbcac
Fix alignment of scratchBuffer in HUF_compressWeights()

The scratch buffer must be 4-byte aligned. This causes test failures in
32-bit systems, where the stack isn't aligned.

Fixes Issue #2428.
lib/common/fse.h
lib/compress/huf_compress.c