From: Yann Collet Date: Mon, 19 Jun 2017 06:31:55 +0000 (-0700) Subject: new api fuzzer set : dictionary is randomly set X-Git-Tag: v1.3.0~1^2~17^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea3630a88997b88f9f17c6fdf637ed15e44b69d8;p=thirdparty%2Fzstd.git new api fuzzer set : dictionary is randomly set --- diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index e087dd722..0785aecb4 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -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_targetLength, cParams.targetLength) ); + if (FUZ_rand(&lseed) & 1) { dict=NULL; dictSize=0; } CHECK_Z( ZSTD_CCtx_loadDictionary(zc, dict, dictSize) ); /* to do : check that cParams are blocked after loading non-NULL dictionary */