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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | breakpad/minidump_fuzzer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/symlink.gni") 5 import("//build/symlink.gni")
6 import("//testing/libfuzzer/fuzzer_test.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 if (is_android) { 9 if (is_android) {
9 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
10 } 11 }
11 12
12 config("tools_config") { 13 config("tools_config") {
13 include_dirs = [ 14 include_dirs = [
14 "src", 15 "src",
15 "src/third_party", 16 "src/third_party",
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "src/third_party/libdisasm/x86_operand_list.h", 141 "src/third_party/libdisasm/x86_operand_list.h",
141 ] 142 ]
142 143
143 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ] 144 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
144 145
145 configs -= [ "//build/config/compiler:chromium_code" ] 146 configs -= [ "//build/config/compiler:chromium_code" ]
146 configs += [ "//build/config/compiler:no_chromium_code" ] 147 configs += [ "//build/config/compiler:no_chromium_code" ]
147 configs += [ ":tools_config" ] 148 configs += [ ":tools_config" ]
148 } 149 }
149 150
151 fuzzer_test("minidump_fuzzer") {
152 sources = [
153 "minidump_fuzzer.cc",
154 "src/processor/exploitability.cc",
155 "src/processor/minidump.cc",
156 "src/processor/minidump_processor.cc",
157 ]
158
159 deps = [
160 ":stackwalk_common",
161 "//base",
162 ]
163
164 defines = [ "BPLOG_MINIMUM_SEVERITY=SEVERITY_ERROR" ]
165 include_dirs = [ "src" ]
166 dict = "minidump_fuzzer.dict"
167
168 libfuzzer_options = [
169 "close_fd_mask=3",
170 "max_len=128000",
171 ]
172
173 # Always want these files included regardless of platform.
174 set_sources_assignment_filter([])
175 sources += [
176 "src/processor/exploitability_linux.cc",
177 "src/processor/exploitability_linux.h",
178 "src/processor/exploitability_win.cc",
179 "src/processor/exploitability_win.h",
180 "src/processor/symbolic_constants_win.cc",
181 "src/processor/symbolic_constants_win.h",
182 ]
183 }
184
150 executable("microdump_stackwalk") { 185 executable("microdump_stackwalk") {
151 sources = [ 186 sources = [
152 "src/processor/microdump.cc", 187 "src/processor/microdump.cc",
153 "src/processor/microdump_processor.cc", 188 "src/processor/microdump_processor.cc",
154 "src/processor/microdump_stackwalk.cc", 189 "src/processor/microdump_stackwalk.cc",
155 ] 190 ]
156 191
157 deps = [ 192 deps = [
158 ":stackwalk_common", 193 ":stackwalk_common",
159 "//build/config/sanitizers:deps", 194 "//build/config/sanitizers:deps",
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 942
908 if (is_android) { 943 if (is_android) {
909 # TODO(GYP_GONE) Delete this after we've converted everything to GN. 944 # TODO(GYP_GONE) Delete this after we've converted everything to GN.
910 group("breakpad_unittests_deps") { 945 group("breakpad_unittests_deps") {
911 testonly = true 946 testonly = true
912 deps = [ 947 deps = [
913 ":breakpad_unittests", 948 ":breakpad_unittests",
914 ] 949 ]
915 } 950 }
916 } 951 }
OLDNEW
« 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