aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorCalder Kitagawa <ckitagawa@google.com>2018-05-09 19:51:14 +0000
committerEdward Lesmes <ehmaldonado@google.com>2021-07-23 22:35:02 +0000
commit11c1b2a45984f0f16a3e043bdc55bc9532227056 (patch)
treeb72c4b4eed92c531dd7e007311744432d19162c9 /BUILD.gn
parent1f3829c820d922c6c1c12ca924bec0bc61112ff1 (diff)
downloadzucchini-11c1b2a45984f0f16a3e043bdc55bc9532227056.tar.gz
Reland "[Zucchini] (raw) Apply fuzzer"
This is a reland of f4a598ff5adfe27f8153bd36984ee9cb549f99e9 Windows cannot resolve #!/usr/bin/env python depending on how it is configured. To fix this explicitly use python in the subprocess call. Interestingly, the Tryjobs didn't catch this and only the official build waterfall does... Original change's description: > [Zucchini] (raw) Apply fuzzer > > This is part of a series of Fuzzers to be added to Zucchini for > security review. This tests the raw data patch application logic > exercising the patch reader and apply process. It only covers ~20% > of code in 100000 executions as the bulk of the remaining code is > associated with the much more complex and expensive to fuzz reference > related code. > > With the supplied seed corpus the fuzzer reaches approximately 11000 > execs/s. > > This found a couple bugs which are fixed in: > https://chromium-review.googlesource.com/c/chromium/src/+/1028575 > > > Bug: 835341 > Change-Id: Idc1d862bfaa6eb6313f39e10536f4750c05ab863 > Reviewed-on: https://chromium-review.googlesource.com/1028570 > Commit-Queue: Calder Kitagawa <ckitagawa@google.com> > Reviewed-by: Samuel Huang <huangs@chromium.org> > Reviewed-by: Greg Thompson <grt@chromium.org> > Reviewed-by: Max Moroz <mmoroz@chromium.org> > Reviewed-by: Jonathan Metzman <metzman@chromium.org> > Cr-Commit-Position: refs/heads/master@{#557185} Bug: 835341 Change-Id: I24e94dd0c2035d84c84636f0a0a30756ae7f0c36 Reviewed-on: https://chromium-review.googlesource.com/1052567 Commit-Queue: Calder Kitagawa <ckitagawa@google.com> Reviewed-by: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#557286} NOKEYCHECK=True GitOrigin-RevId: 8e7c08d3d11c61d08ad05d3ebc283aa2d6bf7c91
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn5
1 files changed, 5 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index f36c949..49f54fb 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -209,4 +209,9 @@ group("zucchini_fuzzers") {
"//components/zucchini/fuzzers:zucchini_disassembler_win32_fuzzer",
"//components/zucchini/fuzzers:zucchini_patch_fuzzer",
]
+
+ # Ensure protoc is available.
+ if (current_toolchain == host_toolchain) {
+ deps += [ "//components/zucchini/fuzzers:zucchini_raw_apply_fuzzer" ]
+ }
}