| Index: breakpad/BUILD.gn
|
| diff --git a/breakpad/BUILD.gn b/breakpad/BUILD.gn
|
| index c7730e756edc83ea5e89a3bf085634e7c4534384..ffe1c5d6121ac4c37412aefc5ebf19988623a791 100644
|
| --- a/breakpad/BUILD.gn
|
| +++ b/breakpad/BUILD.gn
|
| @@ -3,6 +3,7 @@
|
| # found in the LICENSE file.
|
|
|
| import("//build/symlink.gni")
|
| +import("//testing/libfuzzer/fuzzer_test.gni")
|
| import("//testing/test.gni")
|
|
|
| if (is_android) {
|
| @@ -147,6 +148,40 @@ if (!is_win) {
|
| configs += [ ":tools_config" ]
|
| }
|
|
|
| + fuzzer_test("minidump_fuzzer") {
|
| + sources = [
|
| + "minidump_fuzzer.cc",
|
| + "src/processor/exploitability.cc",
|
| + "src/processor/minidump.cc",
|
| + "src/processor/minidump_processor.cc",
|
| + ]
|
| +
|
| + deps = [
|
| + ":stackwalk_common",
|
| + "//base",
|
| + ]
|
| +
|
| + defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
|
| + include_dirs = [ "src" ]
|
| + dict = "minidump_fuzzer.dict"
|
| +
|
| + libfuzzer_options = [
|
| + "close_fd_mask=3",
|
| + "max_len=128000",
|
| + ]
|
| +
|
| + # Always want these files included regardless of platform.
|
| + set_sources_assignment_filter([])
|
| + sources += [
|
| + "src/processor/exploitability_linux.cc",
|
| + "src/processor/exploitability_linux.h",
|
| + "src/processor/exploitability_win.cc",
|
| + "src/processor/exploitability_win.h",
|
| + "src/processor/symbolic_constants_win.cc",
|
| + "src/processor/symbolic_constants_win.h",
|
| + ]
|
| + }
|
| +
|
| executable("microdump_stackwalk") {
|
| sources = [
|
| "src/processor/microdump.cc",
|
|
|