diff options
author | Ivan Lozano <ivanlozano@google.com> | 2020-02-11 08:24:25 -0500 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2021-01-25 11:11:10 -0500 |
commit | 6cd99e6ab45dce7b1a3b865bacf76ce54651bd07 (patch) | |
tree | d107adced00e84c7b91a06cc4114df14b6990318 /rust/proc_macro.go | |
parent | f98384ad80493750c8a3fabea2db1812fc8089d1 (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/proc_macro.go')
-rw-r--r-- | rust/proc_macro.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/proc_macro.go b/rust/proc_macro.go index 0c6ec9953..f753e7f43 100644 --- a/rust/proc_macro.go +++ b/rust/proc_macro.go @@ -51,6 +51,8 @@ func NewProcMacro(hod android.HostOrDeviceSupported) (*Module, *procMacroDecorat flagExporter: NewFlagExporter(), } + // Don't sanitize procMacros + module.sanitize = nil module.compiler = procMacro return module, procMacro |