]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Easy: Fix Test
authorW. Felix Handte <w@felixhandte.com>
Fri, 21 Aug 2020 21:00:26 +0000 (17:00 -0400)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 22:51:52 +0000 (18:51 -0400)
tests/fuzzer.c

index 66ecd724e26ae12be02a4f67ed0798f0c69431f5..c354c42122b40c8c5b5024162ef27b7ac2bd3db0 100644 (file)
@@ -2963,7 +2963,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
 
             cSize = ZSTD_compress2(cctx, compressedBuffer, compressedBufferSize, CNBuffer, CNBuffSize);
             CHECK_Z(cSize);
-            CHECK_Z(ZSTD_decompress_usingDict(dctx, decodedBuffer, CNBuffSize, compressedBuffer, cSize, dict, CNBuffSize));
+            CHECK_Z(ZSTD_decompress_usingDict(dctx, decodedBuffer, CNBuffSize, compressedBuffer, cSize, dict, dictSize));
 
             CHECK_Z(ZSTD_CCtx_reset(cctx, ZSTD_reset_session_and_parameters));
             ZSTD_freeCDict(cdict);