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
1338
1338
] ] ,[ [
1339
1339
*/ int not_main() {
1340
1340
] ] ) ] )
1341
-
1342
- CHECK_RUNTIME_LIB
1343
1341
fi
1344
1342
1345
1343
if test "$enable_wallet" != "no"; then
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ if ENABLE_FUZZ_BINARY
240
240
test_fuzz_fuzz_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BOOST_CPPFLAGS)
241
241
test_fuzz_fuzz_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
242
242
test_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)
244
244
test_fuzz_fuzz_SOURCES = \
245
245
$(FUZZ_WALLET_SRC) \
246
246
test/fuzz/addition_overflow.cpp \
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #if defined(HAVE_CONFIG_H)
6
- #include < config/bitcoin-config.h>
7
- #endif
8
-
9
5
#include < test/fuzz/FuzzedDataProvider.h>
10
6
#include < test/fuzz/fuzz.h>
11
7
#include < test/fuzz/util.h>
14
10
#include < string>
15
11
#include < vector>
16
12
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
+
17
21
namespace {
18
22
template <typename T>
19
23
void TestMultiplicationOverflow (FuzzedDataProvider& fuzzed_data_provider)
You can’t perform that action at this time.
0 commit comments