From f07e13b72926684ff6814f3cdacaf9e71ab89a85 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 15 Nov 2018 16:53:45 -0800 Subject: [PATCH] fixed fuzz src --- tests/fuzz/simple_round_trip.c | 2 +- tests/fuzz/stream_round_trip.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);