diff options
| author | MarcoFalke <[email protected]> | 2020-10-08 13:17:25 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-10-08 13:17:45 +0200 |
| commit | b337bd7bc0873ace317ad8e1ebbd3842da3f81d5 (patch) | |
| tree | 5b012a87faa20aec1db7861d276fe3a7a99ed5b8 /src/test/fuzz | |
| parent | Merge #20027: Use mockable time everywhere in net_processing (diff) | |
| parent | fuzz: Configure check for main function (diff) | |
| download | discoin-b337bd7bc0873ace317ad8e1ebbd3842da3f81d5.tar.xz discoin-b337bd7bc0873ace317ad8e1ebbd3842da3f81d5.zip | |
Merge #20065: fuzz: Configure check for main function
fae7a1c18803675e70b9bf66575e1e0a6e01f6f6 fuzz: Configure check for main function (MarcoFalke)
Pull request description:
Instead of the PP jungle, use a proper configure check
Fixes https://github.com/google/honggfuzz/issues/336#issuecomment-702972138
ACKs for top commit:
practicalswift:
ACK fae7a1c18803675e70b9bf66575e1e0a6e01f6f6
Tree-SHA512: 2e55457d01f9ac598bb1e119d8b49dca55a28f88ec164cee6b5f071c29e9791f5a46cc8ee2b801b3a3faf906348da964ce32e7254da981c1104b9210a3508100
Diffstat (limited to 'src/test/fuzz')
| -rw-r--r-- | src/test/fuzz/fuzz.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp index 1e1807d73..753cfffdc 100644 --- a/src/test/fuzz/fuzz.cpp +++ b/src/test/fuzz/fuzz.cpp @@ -12,15 +12,6 @@ const std::function<void(const std::string&)> G_TEST_LOG_FUN{}; -// Decide if main(...) should be provided: -// * AFL needs main(...) regardless of platform. -// * macOS handles __attribute__((weak)) main(...) poorly when linking -// against libFuzzer. See https://github.com/bitcoin/bitcoin/pull/18008 -// for details. -#if defined(__AFL_COMPILER) || !defined(MAC_OSX) -#define PROVIDE_MAIN_FUNCTION -#endif - #if defined(PROVIDE_MAIN_FUNCTION) static bool read_stdin(std::vector<uint8_t>& data) { |