From eaae983c73dcc1fb18cc8e0030839050b2765f59 Mon Sep 17 00:00:00 2001 From: binaryFate Date: Sun, 28 Jun 2020 00:42:29 +0200 Subject: [PATCH] Monero: fix coverage, don't enable asan, add new fuzz test (#4040) Co-authored-by: binaryFate --- projects/monero/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/monero/build.sh b/projects/monero/build.sh index b2ba520b1..e51f7cd84 100755 --- a/projects/monero/build.sh +++ b/projects/monero/build.sh @@ -19,11 +19,13 @@ export BOOST_ROOT=/src/monero/boost_1_70_0 export OPENSSL_ROOT_DIR=/src/monero/openssl-1.1.1g cd monero +sed -i -e 's/include(FindCcache)/# include(FindCcache)/' CMakeLists.txt git submodule init git submodule update mkdir -p build cd build -cmake -D SANITIZE=ON -D OSSFUZZ=ON -D STATIC=ON -D BUILD_TESTS=ON -D USE_LTO=OFF -D ARCH="default" .. +export CXXFLAGS="$CXXFLAGS -fPIC" +cmake -D OSSFUZZ=ON -D STATIC=ON -D BUILD_TESTS=ON -D USE_LTO=OFF -D ARCH="default" .. make -C tests/fuzz \ base58_fuzz_tests \ block_fuzz_tests \ @@ -37,7 +39,8 @@ make -C tests/fuzz \ signature_fuzz_tests \ transaction_fuzz_tests \ cold-outputs_fuzz_tests \ - cold-transaction_fuzz_tests + cold-transaction_fuzz_tests \ + tx-extra_fuzz_tests cd /src/monero/monero/build/tests/fuzz for fuzzer in *_fuzz_tests