[fuzz] Disable superblock expansion test
This commit is contained in:
@@ -47,8 +47,12 @@ static size_t roundTripTest(void *result, size_t resultCapacity,
|
|||||||
FUZZ_ZASSERT(cSize);
|
FUZZ_ZASSERT(cSize);
|
||||||
dSize = ZSTD_decompressDCtx(dctx, result, resultCapacity, compressed, cSize);
|
dSize = ZSTD_decompressDCtx(dctx, result, resultCapacity, compressed, cSize);
|
||||||
FUZZ_ZASSERT(dSize);
|
FUZZ_ZASSERT(dSize);
|
||||||
/* When superblock is enabled make sure we don't expand the block more than expected. */
|
/* When superblock is enabled make sure we don't expand the block more than expected.
|
||||||
if (targetCBlockSize != 0) {
|
* NOTE: This test is currently disabled because superblock mode can arbitrarily
|
||||||
|
* expand the block in the worst case. Once superblock mode has been improved we can
|
||||||
|
* re-enable this test.
|
||||||
|
*/
|
||||||
|
if (0 && targetCBlockSize != 0) {
|
||||||
size_t normalCSize;
|
size_t normalCSize;
|
||||||
FUZZ_ZASSERT(ZSTD_CCtx_setParameter(cctx, ZSTD_c_targetCBlockSize, 0));
|
FUZZ_ZASSERT(ZSTD_CCtx_setParameter(cctx, ZSTD_c_targetCBlockSize, 0));
|
||||||
normalCSize = ZSTD_compress2(cctx, compressed, compressedCapacity, src, srcSize);
|
normalCSize = ZSTD_compress2(cctx, compressed, compressedCapacity, src, srcSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user