File tree Expand file tree Collapse file tree 4 files changed +9
-49
lines changed Expand file tree Collapse file tree 4 files changed +9
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1338,8 +1338,6 @@ if test "$enable_fuzz_binary" = "yes"; then
13381338 ] ] ,[ [
13391339 */ int not_main() {
13401340 ] ] ) ] )
1341-
1342- CHECK_RUNTIME_LIB
13431341fi
13441342
13451343if test "$enable_wallet" != "no"; then
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ if ENABLE_FUZZ_BINARY
240240test_fuzz_fuzz_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BOOST_CPPFLAGS)
241241test_fuzz_fuzz_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
242242test_fuzz_fuzz_LDADD = $(FUZZ_SUITE_LD_COMMON)
243- test_fuzz_fuzz_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) $(PTHREAD_FLAGS) $(RUNTIME_LDFLAGS)
243+ test_fuzz_fuzz_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) $(PTHREAD_FLAGS)
244244test_fuzz_fuzz_SOURCES = \
245245 $(FUZZ_WALLET_SRC) \
246246 test/fuzz/addition_overflow.cpp \
Original file line number Diff line number Diff line change 22// Distributed under the MIT software license, see the accompanying
33// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44
5- #if defined(HAVE_CONFIG_H)
6- #include < config/bitcoin-config.h>
7- #endif
8-
95#include < test/fuzz/FuzzedDataProvider.h>
106#include < test/fuzz/fuzz.h>
117#include < test/fuzz/util.h>
1410#include < string>
1511#include < vector>
1612
13+ #if defined(__has_builtin)
14+ #if __has_builtin(__builtin_mul_overflow)
15+ #define HAVE_BUILTIN_MUL_OVERFLOW
16+ #endif
17+ #elif defined(__GNUC__)
18+ #define HAVE_BUILTIN_MUL_OVERFLOW
19+ #endif
20+
1721namespace {
1822template <typename T>
1923void TestMultiplicationOverflow (FuzzedDataProvider& fuzzed_data_provider)
You can’t perform that action at this time.
0 commit comments