mirror of https://github.com/google/oss-fuzz.git
[sqlite3] Increase SQLITE_MAX_PAGE_COUNT to 16384.
This commit is contained in:
parent
d7a8ba21d7
commit
b7105de7f1
|
@ -19,12 +19,13 @@ mkdir bld
|
||||||
cd bld
|
cd bld
|
||||||
|
|
||||||
export ASAN_OPTIONS=detect_leaks=0
|
export ASAN_OPTIONS=detect_leaks=0
|
||||||
|
|
||||||
# Limit max length of data blobs and sql queries to prevent irrelevant OOMs.
|
# Limit max length of data blobs and sql queries to prevent irrelevant OOMs.
|
||||||
# Also limit max memory page count to avoid creating large databases.
|
# Also limit max memory page count to avoid creating large databases.
|
||||||
export CFLAGS="$CFLAGS -DSQLITE_MAX_LENGTH=128000000 \
|
export CFLAGS="$CFLAGS -DSQLITE_MAX_LENGTH=128000000 \
|
||||||
-DSQLITE_MAX_SQL_LENGTH=128000000 \
|
-DSQLITE_MAX_SQL_LENGTH=128000000 \
|
||||||
-DSQLITE_PRINTF_PRECISION_LIMIT=128000000 \
|
-DSQLITE_PRINTF_PRECISION_LIMIT=128000000 \
|
||||||
-DSQLITE_MAX_PAGE_COUNT=8092"
|
-DSQLITE_MAX_PAGE_COUNT=16384"
|
||||||
../configure
|
../configure
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make sqlite3.c
|
make sqlite3.c
|
||||||
|
@ -37,4 +38,3 @@ $CXX $CXXFLAGS \
|
||||||
-lFuzzingEngine ./sqlite3.o
|
-lFuzzingEngine ./sqlite3.o
|
||||||
|
|
||||||
cp $SRC/*.options $SRC/*.dict $SRC/*.zip $OUT/
|
cp $SRC/*.options $SRC/*.dict $SRC/*.zip $OUT/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue