From: Yann Collet Date: Fri, 16 Nov 2018 00:53:45 +0000 (-0800) Subject: fixed fuzz src X-Git-Tag: v1.3.8~33^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07e13b72926684ff6814f3cdacaf9e71ab89a85;p=thirdparty%2Fzstd.git fixed fuzz src --- diff --git a/tests/fuzz/simple_round_trip.c b/tests/fuzz/simple_round_trip.c index 5474d7561..81025be9c 100644 --- a/tests/fuzz/simple_round_trip.c +++ b/tests/fuzz/simple_round_trip.c @@ -40,7 +40,7 @@ static size_t roundTripTest(void *result, size_t resultCapacity, ZSTD_outBuffer out = {compressed, compressedCapacity, 0}; size_t err; - ZSTD_CCtx_reset(cctx, ZSTD_CCtx_reset_session_only); + ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); FUZZ_setRandomParameters(cctx, srcSize, &seed); err = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); FUZZ_ZASSERT(err); diff --git a/tests/fuzz/stream_round_trip.c b/tests/fuzz/stream_round_trip.c index b04f6fdce..7008a1c2e 100644 --- a/tests/fuzz/stream_round_trip.c +++ b/tests/fuzz/stream_round_trip.c @@ -56,7 +56,7 @@ static size_t compress(uint8_t *dst, size_t capacity, const uint8_t *src, size_t srcSize) { size_t dstSize = 0; - ZSTD_CCtx_reset(cctx, ZSTD_CCtx_reset_session_only); + ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); FUZZ_setRandomParameters(cctx, srcSize, &seed); while (srcSize > 0) { @@ -84,7 +84,7 @@ static size_t compress(uint8_t *dst, size_t capacity, FUZZ_ZASSERT(ret); /* Reset the compressor when the frame is finished */ if (ret == 0) { - ZSTD_CCtx_reset(cctx, ZSTD_CCtx_reset_session_only); + ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); if ((FUZZ_rand(&seed) & 7) == 0) { size_t const remaining = in.size - in.pos; FUZZ_setRandomParameters(cctx, remaining, &seed);