mirror of https://github.com/google/oss-fuzz.git
duckdb: Compile in relassert mode and enable CRASH_ON_ASSERT for fuzzing (#9904)
This should enable assertion checking, and sets it up so DuckDB calls `abort()` on any assertion trigger, which should lead to more effective fuzzing.
This commit is contained in:
parent
0b607feb21
commit
7f992d802f
|
@ -15,10 +15,10 @@
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
make
|
make relassert CRASH_ON_ASSERT=1 DISABLE_SANITIZER=1
|
||||||
EXTENSION_LIBS=$(find ./build/release/extension/ -name "*.a")
|
EXTENSION_LIBS=$(find ./build/relassert/extension/ -name "*.a")
|
||||||
THIRD_PARTY_LIBS=$(find ./build/release/third_party/ -name "*.a")
|
THIRD_PARTY_LIBS=$(find ./build/relassert/third_party/ -name "*.a")
|
||||||
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE ./test/ossfuzz/parse_fuzz_test.cpp \
|
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE ./test/ossfuzz/parse_fuzz_test.cpp \
|
||||||
-o $OUT/parse_fuzz_test -I./ -I./src/include \
|
-o $OUT/parse_fuzz_test -I./ -I./src/include \
|
||||||
./build/release/src/libduckdb_static.a \
|
./build/relassert/src/libduckdb_static.a \
|
||||||
${EXTENSION_LIBS} ${THIRD_PARTY_LIBS}
|
${EXTENSION_LIBS} ${THIRD_PARTY_LIBS}
|
||||||
|
|
Loading…
Reference in New Issue