mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 09:26:03 +02:00
zstreamtest uses random section sizes for fuzzing
This commit is contained in:
parent
cd23dd24af
commit
92c98a5b21
@ -837,6 +837,7 @@ static int fuzzerTests_MT(U32 seed, U32 nbTests, unsigned startTest, double comp
|
||||
{ size_t const initError = ZSTDMT_initCStream_advanced(zc, dict, dictSize, params, pledgedSrcSize);
|
||||
CHECK (ZSTD_isError(initError),"ZSTDMT_initCStream_advanced error : %s", ZSTD_getErrorName(initError)); }
|
||||
ZSTDMT_setMTCtxParameter(zc, ZSTDMT_p_overlapSectionLog, FUZ_rand(&lseed) % 12);
|
||||
ZSTDMT_setMTCtxParameter(zc, ZSTDMT_p_sectionSize, FUZ_rand(&lseed) % (2*maxTestSize+1));
|
||||
} }
|
||||
|
||||
/* multi-segments compression test */
|
||||
|
Loading…
x
Reference in New Issue
Block a user