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

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

Issue 2506593002: Add SQLITE_PRINTF_PRECISION_LIMIT=128000000 for sqlite3 fuzzer builds. (Closed)
Patch Set: Created 4 years, 1 month 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 | 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 (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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698