From ea3630a88997b88f9f17c6fdf637ed15e44b69d8 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 18 Jun 2017 23:31:55 -0700 Subject: [PATCH] new api fuzzer set : dictionary is randomly set --- tests/zstreamtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index e087dd72..0785aecb 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 */