]> git.ipfire.org Git - thirdparty/zstd.git/commit
changed overflow correction place
authorYann Collet <cyan@fb.com>
Wed, 26 Sep 2018 22:35:38 +0000 (15:35 -0700)
committerYann Collet <cyan@fb.com>
Wed, 26 Sep 2018 22:35:38 +0000 (15:35 -0700)
commit0e2dbac18a2ba6ee073120f09b8b90f323bbfbc1
treee1212cf61e50919fbb237177badc12012400619c
parentf98c69d77cd9b1dde60df2de05613006842d4896
changed overflow correction place

keep one in compress_frameChunk(),
so that it's tested at every loop
in case some user simply some large mulit-GB input in a single invocation.

Add one in ZSTD_compressBlock(),
since compressBlock() explicitly skips frameChunk().
lib/compress/zstd_compress.c