OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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("//testing/libfuzzer/fuzzer_test.gni") | 5 import("//testing/libfuzzer/fuzzer_test.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # Controls whether the build should uses the version of sqlite3 library | 8 # Controls whether the build should uses the version of sqlite3 library |
9 # shipped with the system (currently only supported on iOS) or the one | 9 # shipped with the system (currently only supported on iOS) or the one |
10 # shipped with Chromium source. | 10 # shipped with Chromium source. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 # are not available to the build config. | 128 # are not available to the build config. |
129 if (is_linux) { | 129 if (is_linux) { |
130 defines += [ "_HAVE_SQLITE_CONFIG_H" ] | 130 defines += [ "_HAVE_SQLITE_CONFIG_H" ] |
131 } | 131 } |
132 | 132 |
133 if (using_sanitizer) { | 133 if (using_sanitizer) { |
134 # Limit max length of data blobs and queries for fuzzing builds by 128 MB. | 134 # Limit max length of data blobs and queries for fuzzing builds by 128 MB. |
135 defines += [ | 135 defines += [ |
136 "SQLITE_MAX_LENGTH=128000000", | 136 "SQLITE_MAX_LENGTH=128000000", |
137 "SQLITE_MAX_SQL_LENGTH=128000000", | 137 "SQLITE_MAX_SQL_LENGTH=128000000", |
| 138 "SQLITE_PRINTF_PRECISION_LIMIT=128000000", |
138 ] | 139 ] |
139 } | 140 } |
140 | 141 |
141 include_dirs = [ "amalgamation" ] | 142 include_dirs = [ "amalgamation" ] |
142 | 143 |
143 configs -= [ "//build/config/compiler:chromium_code" ] | 144 configs -= [ "//build/config/compiler:chromium_code" ] |
144 configs += [ | 145 configs += [ |
145 "//build/config/compiler:no_chromium_code", | 146 "//build/config/compiler:no_chromium_code", |
146 | 147 |
147 # Must be after no_chromium_code for warning flags to be ordered | 148 # Must be after no_chromium_code for warning flags to be ordered |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 269 |
269 fuzzer_test("sqlite3_prepare_v2_fuzzer") { | 270 fuzzer_test("sqlite3_prepare_v2_fuzzer") { |
270 sources = [ | 271 sources = [ |
271 "fuzz/sqlite3_prepare_v2_fuzzer.cc", | 272 "fuzz/sqlite3_prepare_v2_fuzzer.cc", |
272 ] | 273 ] |
273 deps = [ | 274 deps = [ |
274 ":sqlite", | 275 ":sqlite", |
275 ] | 276 ] |
276 dict = "fuzz/sqlite3_prepare_v2_fuzzer.dict" | 277 dict = "fuzz/sqlite3_prepare_v2_fuzzer.dict" |
277 } | 278 } |
OLD | NEW |