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 2641123004: [sql] Lower SQLITE_PRINTF_PRECISION_LIMIT for fuzzer. (Closed)
Patch Set: Created 3 years, 11 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 | 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 "SQLITE_PRINTF_PRECISION_LIMIT=1280000",
139 ] 139 ]
140 } 140 }
141 141
142 include_dirs = [ "amalgamation" ] 142 include_dirs = [ "amalgamation" ]
143 143
144 configs -= [ "//build/config/compiler:chromium_code" ] 144 configs -= [ "//build/config/compiler:chromium_code" ]
145 configs += [ 145 configs += [
146 "//build/config/compiler:no_chromium_code", 146 "//build/config/compiler:no_chromium_code",
147 147
148 # 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 fuzzer_test("sqlite3_ossfuzz_fuzzer") { 280 fuzzer_test("sqlite3_ossfuzz_fuzzer") {
281 # TODO(mmoroz, shess): remove fuzz/ossfuzz.c after next sqlite3 update. 281 # TODO(mmoroz, shess): remove fuzz/ossfuzz.c after next sqlite3 update.
282 sources = [ 282 sources = [
283 "fuzz/ossfuzz.c", 283 "fuzz/ossfuzz.c",
284 ] 284 ]
285 deps = [ 285 deps = [
286 ":sqlite", 286 ":sqlite",
287 ] 287 ]
288 dict = "fuzz/sql.dict" 288 dict = "fuzz/sql.dict"
289 } 289 }
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