]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Force CCtx minmatch to be same as generated minmatch 2398/head
authorsenhuang42 <senhuang96@fb.com>
Mon, 23 Nov 2020 18:29:20 +0000 (13:29 -0500)
committersenhuang42 <senhuang96@fb.com>
Mon, 23 Nov 2020 18:29:20 +0000 (13:29 -0500)
tests/fuzz/sequence_compression_api.c

index 8d225b1d76ab60d8e8feed1207fc575a227ddf06..e22c11caf5bc1a9d9083a8bcdc90e550d6992c7f 100644 (file)
@@ -198,6 +198,7 @@ static size_t roundTripTest(void *result, size_t resultCapacity,
     ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, 0);
     ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, cLevel);
     ZSTD_CCtx_setParameter(cctx, ZSTD_c_windowLog, wLog);
+    ZSTD_CCtx_setParameter(cctx, ZSTD_c_minMatch, ZSTD_MINMATCH_MIN);
     /* TODO: Add block delim mode fuzzing */
     ZSTD_CCtx_setParameter(cctx, ZSTD_c_blockDelimiters, ZSTD_sf_noBlockDelimiters);
     if (hasDict) {