From 1247b3c8a007a3cb4b68614952a97735f02a05ec Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Mon, 12 Jun 2023 14:57:44 -0400 Subject: [PATCH] rust: Fix flags for Rust libfuzzer fuzzers Rust libfuzzer flags have changed upstream, so update our set of flags. This fixes the following fuzzer error: ERROR: The size of coverage PC tables does not match the number of instrumented PCs. This might be a compiler bug, please contact the libFuzzer developers. Bug: 249551848 Test: SANITIZE_TARGET="hwaddress fuzzer" m Test: Test running the fuzzer. Change-Id: I4f7df1fbe636133c646dfb0bd12757c947995ffe --- rust/sanitize.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/sanitize.go b/rust/sanitize.go index 83cf05552..0f7cf6e5f 100644 --- a/rust/sanitize.go +++ b/rust/sanitize.go @@ -62,8 +62,7 @@ var fuzzerFlags = []string{ "-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-trace-geps", - "-C llvm-args=-sanitizer-coverage-prune-blocks=0", + "-C llvm-args=-sanitizer-coverage-pc-table", // See https://github.com/rust-fuzz/cargo-fuzz/pull/193 "-C link-dead-code",