]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Enable if == 1 rather than if == 0 3437/head
authorElliot Gorokhovsky <embg@fb.com>
Fri, 20 Jan 2023 16:41:53 +0000 (11:41 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Jan 2023 16:41:53 +0000 (11:41 -0500)
Co-authored-by: Nick Terrell <nickrterrell@gmail.com>
tests/fuzz/zstd_helpers.c

index c9fcdd5bfe7e0808cb9b83e428d7ce42497581b5..43a26405fc5f3d135085f41b13115ac26719ad1a 100644 (file)
@@ -135,7 +135,7 @@ void FUZZ_setRandomParameters(ZSTD_CCtx *cctx, size_t srcSize, FUZZ_dataProducer
       setRand(cctx, ZSTD_c_targetCBlockSize, ZSTD_TARGETCBLOCKSIZE_MIN, ZSTD_TARGETCBLOCKSIZE_MAX, producer);
     }
 
-    if (FUZZ_dataProducer_uint32Range(producer, 0, 10) == 0) {
+    if (FUZZ_dataProducer_uint32Range(producer, 0, 10) == 1) {
         setExternalMatchFinderParams(cctx, producer);
     } else {
         ZSTD_registerExternalMatchFinder(cctx, NULL, NULL);