summaryrefslogtreecommitdiff
path: root/rust/fuzz.go
AgeCommit message (Collapse)Author
2021-10-14rust: Package shared libraries with fuzzer zips Ivan Lozano
Rust fuzzers were not packaging up their CC shared dependencies. This would lead to fuzzers using the shared libraries included on system, which may not be sanitized, leading to incorrect behavior. This refactors the relevant code from CC and calls it from the Rust build logic. Bug: 202282599 Test: output rust fuzzer zip file includes shared dependencies. Change-Id: I92196eb0141733797a67eae24f8e9aedea94c3bc
2021-08-11Moving common fuzzing code to fuzz package hamzeh
Test: make haiku and make haiku-rust Change-Id: Ife80cc10672f51bd6afbae7061cc9373a2a15e7d
2021-07-16Refactoring fuzz packaging code hamzeh
Rust and cc fuzz packaging have common. This change is to put this common methods and fields into fuzz_common. Test: make haiku and make haiku-rust ran locally and verify corpus, dict and config are packaged along with the executable. Change-Id: I04bf535cd2597ed8b2bd3d8e6ea8c28f38bdc18b
2021-05-01Add support for packaging rust fuzzers hamzeh
Test: make haiku-rust Change-Id: Idd4d836d11e0ae615b59c6648d49348449589787
2021-04-13rust: Switch rust_fuzz to HWASan Tri Vo
Bug: 180495975 Test: example_rust_fuzzer Change-Id: I26e6f15136ee2d5f4ed1167be5c1c6a14b19421a
2021-04-12rust_fuzzer: add toolchain libraries if non-empty Liz Kammer
Test: bp2build Test: m nothing Fixes: 185163319 Change-Id: Id8b8e5b21b71f949fa8fa27f8c8cc4aba00c1f7d
2021-02-04bp2build: convert paths/module refs to Bazel label Liz Kammer
This currently expands all globs, still need to support converting glob syntax. Test: go build_conversion_test Test: GENERATE_BAZEL_FILES=true m nothing Test: m nothing Bug: 165114590 Change-Id: If7b26e8e663d17566fad9614ca87a8da1f095284
2021-01-25Add Rust fuzzing support. Ivan Lozano
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