Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3344)

Unified Diff: breakpad/BUILD.gn

Issue 2296893002: Add minidump fuzzer for breakpad. (Closed)
Patch Set: do not binary_symlink the test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | breakpad/minidump_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | breakpad/minidump_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698