aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-09-19 15:09:18 +0000
committerfanquake <fanquake@gmail.com>2023-09-19 15:13:26 +0000
commita5979a8d4a8a65b51aba0a9780bb3f1482b3e647 (patch)
treeba7d3bdf1feeace786b083d311249ba590654942
parentf01416e23c9c820517c37003a2a98dd46d1022ba (diff)
parentfa33b2c889b90bd44f188ba5f0fafe31d7d7fad7 (diff)
downloadbitcoin-a5979a8d4a8a65b51aba0a9780bb3f1482b3e647.tar.xz
Merge bitcoin/bitcoin#28506: fuzz: Add missing PROVIDE_FUZZ_MAIN_FUNCTION guard to __AFL_FUZZ_INIT
fa33b2c889b90bd44f188ba5f0fafe31d7d7fad7 fuzz: Add missing PROVIDE_FUZZ_MAIN_FUNCTION guard to __AFL_FUZZ_INIT (MarcoFalke) Pull request description: Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62455 ACKs for top commit: dergoegge: utACK fa33b2c889b90bd44f188ba5f0fafe31d7d7fad7 Tree-SHA512: 735926f7f94ad1c3c5dc0fc62a2ef3a85abae25f4fe1e7654c2857ce3e867667ed28da58ab36281d730d3e206a0728cb429671ea5d3ccd11519e637eb191f70d
-rw-r--r--src/test/fuzz/fuzz.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp
index 32bd00ec03..5245b4607b 100644
--- a/src/test/fuzz/fuzz.cpp
+++ b/src/test/fuzz/fuzz.cpp
@@ -29,7 +29,7 @@
#include <utility>
#include <vector>
-#ifdef __AFL_FUZZ_INIT
+#if defined(PROVIDE_FUZZ_MAIN_FUNCTION) && defined(__AFL_FUZZ_INIT)
__AFL_FUZZ_INIT();
#endif