From 9824d14a34b6340b95fa4f729202cbd853e9eeb3 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 9 Jul 2024 21:01:36 +0000 Subject: [PATCH] Fix fuzz test build --- fuzz/src/parse_stream_validate.rs | 2 +- test.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fuzz/src/parse_stream_validate.rs b/fuzz/src/parse_stream_validate.rs index 301a50c..f0a1083 100644 --- a/fuzz/src/parse_stream_validate.rs +++ b/fuzz/src/parse_stream_validate.rs @@ -67,7 +67,7 @@ fn run_test_cases() { let path = test.unwrap().path(); fs::File::open(&path).unwrap().read_to_end(&mut data).unwrap(); - let _ = parse_rr_stream(data).as_ref() + let _ = parse_rr_stream(&data).as_ref() .map(|rrs| verify_rr_stream(rrs)); } } diff --git a/test.sh b/test.sh index e2f7039..0ffe705 100755 --- a/test.sh +++ b/test.sh @@ -24,5 +24,6 @@ cargo build --bin http_proof_gen --features build_server cargo doc --features std,tokio,validation cd fuzz RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" RUSTC_BOOTSTRAP=1 cargo build --features stdin_fuzz +RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" RUSTC_BOOTSTRAP=1 cargo test cd ../bench RUSTFLAGS="$RUSTFLAGS --cfg=dnssec_validate_bench" cargo bench -- 2.39.5