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

Side by Side Diff: breakpad/BUILD.gn

Issue 2296893002: Add minidump fuzzer for breakpad. (Closed)
Patch Set: add options 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') | breakpad/minidump_fuzzer.cc » ('J')
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/test.gni") 6 import("//testing/test.gni")
7 import("//testing/libfuzzer/fuzzer_test.gni")
Lei Zhang 2016/08/30 21:00:33 alphabetical order
Will Harris 2016/08/31 17:48:09 Done.
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",
16 ] 17 ]
(...skipping 123 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 ]
162
163 include_dirs = [ "src" ]
164
165 libfuzzer_options = [ "close_fd_mask=3" ]
166
167 # Always want these files included regardless of platform.
168 set_sources_assignment_filter([])
169 sources += [
170 "src/processor/exploitability_linux.cc",
Lei Zhang 2016/08/30 21:00:33 Are these all actually needed?
Will Harris 2016/08/31 17:48:09 ../../breakpad/src/processor/exploitability.cc:81:
171 "src/processor/exploitability_linux.h",
172 "src/processor/exploitability_win.cc",
173 "src/processor/exploitability_win.h",
174 "src/processor/symbolic_constants_win.cc",
175 "src/processor/symbolic_constants_win.h",
176 ]
177 }
178
150 executable("microdump_stackwalk") { 179 executable("microdump_stackwalk") {
151 sources = [ 180 sources = [
152 "src/processor/microdump.cc", 181 "src/processor/microdump.cc",
153 "src/processor/microdump_processor.cc", 182 "src/processor/microdump_processor.cc",
154 "src/processor/microdump_stackwalk.cc", 183 "src/processor/microdump_stackwalk.cc",
155 ] 184 ]
156 185
157 deps = [ 186 deps = [
158 ":stackwalk_common", 187 ":stackwalk_common",
159 "//build/config/sanitizers:deps", 188 "//build/config/sanitizers:deps",
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 # Aliases for convenience. 257 # Aliases for convenience.
229 binary_symlink("microdump_stackwalk") { 258 binary_symlink("microdump_stackwalk") {
230 binary_label = ":$target_name($host_toolchain)" 259 binary_label = ":$target_name($host_toolchain)"
231 } 260 }
232 binary_symlink("minidump_stackwalk") { 261 binary_symlink("minidump_stackwalk") {
233 binary_label = ":$target_name($host_toolchain)" 262 binary_label = ":$target_name($host_toolchain)"
234 } 263 }
235 binary_symlink("minidump_dump") { 264 binary_symlink("minidump_dump") {
236 binary_label = ":$target_name($host_toolchain)" 265 binary_label = ":$target_name($host_toolchain)"
237 } 266 }
267 binary_symlink("minidump_fuzzer") {
Will Harris 2016/08/31 17:48:09 I'm not even sure what this does, or whether it's
Lei Zhang 2016/08/31 18:37:22 Well, presumably it adds a symlink when doing an A
268 binary_label = ":$target_name($host_toolchain)"
269 }
238 } 270 }
239 } 271 }
240 272
241 # Mac -------------------------------------------------------------------------- 273 # Mac --------------------------------------------------------------------------
242 274
243 if (is_mac) { 275 if (is_mac) {
244 if (current_toolchain == host_toolchain) { 276 if (current_toolchain == host_toolchain) {
245 # TODO(GYP) This should be only 64-bit on Mac. From .gypi: 277 # TODO(GYP) This should be only 64-bit on Mac. From .gypi:
246 # Like ld, dump_syms needs to operate on enough data that it may 278 # Like ld, dump_syms needs to operate on enough data that it may
247 # actually need to be able to address more than 4GB. Use x86_64. 279 # actually need to be able to address more than 4GB. Use x86_64.
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 939
908 if (is_android) { 940 if (is_android) {
909 # TODO(GYP_GONE) Delete this after we've converted everything to GN. 941 # TODO(GYP_GONE) Delete this after we've converted everything to GN.
910 group("breakpad_unittests_deps") { 942 group("breakpad_unittests_deps") {
911 testonly = true 943 testonly = true
912 deps = [ 944 deps = [
913 ":breakpad_unittests", 945 ":breakpad_unittests",
914 ] 946 ]
915 } 947 }
916 } 948 }
OLDNEW
« no previous file with comments | « no previous file | breakpad/minidump_fuzzer.cc » ('j') | breakpad/minidump_fuzzer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698