summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2020-02-11 08:24:25 -0500
committerIvan Lozano <ivanlozano@google.com>2021-01-25 11:11:10 -0500
commit6cd99e6ab45dce7b1a3b865bacf76ce54651bd07 (patch)
treed107adced00e84c7b91a06cc4114df14b6990318 /rust/compiler.go
parentf98384ad80493750c8a3fabea2db1812fc8089d1 (diff)
Add Rust fuzzing support.
Add a rust_fuzz module which builds a libfuzzer binary that enabes asan+sancov. This relies on the libfuzzer-sys crate. Bug: 147140513 Test: Local rust_fuzz example builds, fuzzes with asan+sancov. Change-Id: I57db3b8d25869791824ccfab768d13b0bb9d42fa
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index bcea6cccc..2d9575c0e 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -146,6 +146,7 @@ type baseCompiler struct {
relative string
path android.InstallPath
location installLocation
+ sanitize *sanitize
coverageOutputZipFile android.OptionalPath
distFile android.OptionalPath