From 1485c3813b347f52c6ac6d038e537c95b64d3da1 Mon Sep 17 00:00:00 2001 From: xjd Date: Tue, 15 Aug 2023 08:53:46 +0800 Subject: [PATCH] Update fuzzing test add corpus --- examples/lazy-reader-tests/fuzz/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/lazy-reader-tests/fuzz/Makefile b/examples/lazy-reader-tests/fuzz/Makefile index c0b5294..f6de949 100644 --- a/examples/lazy-reader-tests/fuzz/Makefile +++ b/examples/lazy-reader-tests/fuzz/Makefile @@ -1,12 +1,21 @@ + +# To accelerate the fuzzing process, please download the pre-made corpus file +# from the following link: +# https://gist.github.com/XuJiandong/852905df792d34a3400b98145b0f69e7 Save the +# file named corpus.bin to the corpus/fuzz_target_1/ folder. + all: cargo fuzz run -j40 fuzz_target_1 cov: cargo fuzz coverage fuzz_target_1 - cargo cov -- show target/x86_64-unknown-linux-gnu/release/fuzz_target_1 \ + +show: + ~/.rustup/toolchains/nightly-2023-07-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-cov \ + show target/x86_64-unknown-linux-gnu/release/fuzz_target_1 \ --format=html \ - -instr-profile=coverage/fuzz_target_1/coverage.profdata \ + --instr-profile=coverage/fuzz_target_1/coverage.profdata \ > coverage.html install: