From 16c72bf84bd8e6f175b621b0ae2c88581ff0d175 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Tue, 15 Nov 2016 12:21:22 +0100 Subject: [PATCH] [sqlite3] Add SQLITE_PRINTF_PRECISION_LIMIT=128000000 to prevent more OOMs. --- targets/sqlite3/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/sqlite3/build.sh b/targets/sqlite3/build.sh index 641a334a8..d8979f33b 100755 --- a/targets/sqlite3/build.sh +++ b/targets/sqlite3/build.sh @@ -23,7 +23,8 @@ cd bld export ASAN_OPTIONS=detect_leaks=0 # Limit max length of data blobs and sql queries to prevent irrelevant OOMs. export CFLAGS="$CFLAGS -DSQLITE_MAX_LENGTH=128000000 \ - -DSQLITE_MAX_SQL_LENGTH=128000000" + -DSQLITE_MAX_SQL_LENGTH=128000000 \ + -DSQLITE_PRINTF_PRECISION_LIMIT=128000000" ../configure make -j$(nproc) make sqlite3.c