From c044f5bce8b0169b5c696f301e15335f12b927f1 Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Fri, 2 Apr 2021 12:43:28 -0400 Subject: [PATCH] rust: Update libfuzzer flags for rust_fuzz libfuzzer-sys uses different flags in the 0.4.0 update, so update the flags for rust_fuzz modules to align. Test: m Change-Id: I0a1eb140a7843fdaf5266c05a1ecf6d3964e0f5e --- rust/sanitize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/sanitize.go b/rust/sanitize.go index 2f44b204b..2498aa15c 100644 --- a/rust/sanitize.go +++ b/rust/sanitize.go @@ -40,12 +40,12 @@ var fuzzerFlags = []string{ "-C passes='sancov'", "--cfg fuzzing", - "-C llvm-args=-sanitizer-coverage-level=4", + "-C llvm-args=-sanitizer-coverage-level=3", "-C llvm-args=-sanitizer-coverage-trace-compares", "-C llvm-args=-sanitizer-coverage-inline-8bit-counters", + "-C llvm-args=-sanitizer-coverage-stack-depth", "-C llvm-args=-sanitizer-coverage-trace-geps", "-C llvm-args=-sanitizer-coverage-prune-blocks=0", - "-C llvm-args=-sanitizer-coverage-pc-table", "-Z sanitizer=address", // Sancov breaks with lto