new api fuzzer set : dictionary is randomly set
This commit is contained in:
parent
8dee0ec99e
commit
ea3630a889
@ -1292,6 +1292,7 @@ static int fuzzerTests_newAPI(U32 seed, U32 nbTests, unsigned startTest, double
|
|||||||
if (FUZ_rand(&lseed) & 1) CHECK_Z( ZSTD_CCtx_setParameter(zc, ZSTD_p_minMatch, cParams.searchLength) );
|
if (FUZ_rand(&lseed) & 1) CHECK_Z( ZSTD_CCtx_setParameter(zc, ZSTD_p_minMatch, cParams.searchLength) );
|
||||||
if (FUZ_rand(&lseed) & 1) CHECK_Z( ZSTD_CCtx_setParameter(zc, ZSTD_p_targetLength, cParams.targetLength) );
|
if (FUZ_rand(&lseed) & 1) CHECK_Z( ZSTD_CCtx_setParameter(zc, ZSTD_p_targetLength, cParams.targetLength) );
|
||||||
|
|
||||||
|
if (FUZ_rand(&lseed) & 1) { dict=NULL; dictSize=0; }
|
||||||
CHECK_Z( ZSTD_CCtx_loadDictionary(zc, dict, dictSize) );
|
CHECK_Z( ZSTD_CCtx_loadDictionary(zc, dict, dictSize) );
|
||||||
|
|
||||||
/* to do : check that cParams are blocked after loading non-NULL dictionary */
|
/* to do : check that cParams are blocked after loading non-NULL dictionary */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user