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

Side by Side Diff: third_party/boringssl/BUILD.gn

Issue 1885493002: [libfuzzer] Add custom max_len parameter for boringssl fuzzers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove depfile for dry run to test a possible fix. Created 4 years, 7 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 | « testing/libfuzzer/fuzzer_test.gni ('k') | no next file » | 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/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build_overrides/build.gni") 7 import("//build_overrides/build.gni")
8 import("//testing/libfuzzer/fuzzer_test.gni") 8 import("//testing/libfuzzer/fuzzer_test.gni")
9 import("BUILD.generated.gni") 9 import("BUILD.generated.gni")
10 import("BUILD.generated_tests.gni") 10 import("BUILD.generated_tests.gni")
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 foreach(fuzzer, fuzzers) { 172 foreach(fuzzer, fuzzers) {
173 fuzzer_test("boringssl_${fuzzer}_fuzzer") { 173 fuzzer_test("boringssl_${fuzzer}_fuzzer") {
174 sources = [ 174 sources = [
175 "src/fuzz/${fuzzer}.cc", 175 "src/fuzz/${fuzzer}.cc",
176 ] 176 ]
177 deps = [ 177 deps = [
178 ":boringssl_fuzzer", 178 ":boringssl_fuzzer",
179 ] 179 ]
180 seed_corpus = "src/fuzz/${fuzzer}_corpus" 180 seed_corpus = "src/fuzz/${fuzzer}_corpus"
181
182 if ("cert" == fuzzer) {
183 libfuzzer_options = [ "max_len=3072" ]
184 } else if ("client" == fuzzer) {
185 libfuzzer_options = [ "max_len=20000" ]
186 } else if ("privkey" == fuzzer) {
187 libfuzzer_options = [ "max_len=2048" ]
188 } else if ("server" == fuzzer) {
189 libfuzzer_options = [ "max_len=4096" ]
davidben 2016/04/27 18:06:22 Oof. Sorry, I completely forgot this was in the pi
190 }
181 } 191 }
182 } 192 }
183 } 193 }
OLDNEW
« no previous file with comments | « testing/libfuzzer/fuzzer_test.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698