]> git.ipfire.org Git - thirdparty/zstd.git/commit
[fuzz] Dividing by targetCBlockSize instead of blockSize for nbBlocks fit (#1936)
authorBimba Shrestha <bimbashrestha@fb.com>
Sat, 4 Jan 2020 00:53:51 +0000 (16:53 -0800)
committerYann Collet <Cyan4973@users.noreply.github.com>
Sat, 4 Jan 2020 00:53:51 +0000 (16:53 -0800)
commitb1f53b1a101af594fe69279c819fab9a50c4ce04
tree5cc421077dffe196199f718cd8ec9fda210a9a0f
parentef1684f29a1757596147856294be90d274546f42
[fuzz] Dividing by targetCBlockSize instead of blockSize for nbBlocks fit (#1936)

* Adding fail logging for superblock flow

* Dividing by targetCBlockSize instead of blockSize

* Adding new const and using more acurate formula for nbBlocks

* Only do dstCapacity check if using superblock

* Remvoing disabling logic

* Updating test to make it catch more extreme case of previou bug

* Also updating comment

* Only taking compressEnd shortcut on non-superblock
lib/common/zstd_internal.h
lib/compress/zstd_compress.c
tests/fuzzer.c