mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
tests: Allow for using non-default fuzzing initialization
This commit is contained in:
parent
c34b88620d
commit
fdef8bbf2f
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,9 @@ static bool read_stdin(std::vector<uint8_t>& data)
|
||||||
return length == 0;
|
return length == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initialize()
|
// Default initialization: Override using a non-weak initialize().
|
||||||
|
__attribute__((weak))
|
||||||
|
void initialize()
|
||||||
{
|
{
|
||||||
const static auto verify_handle = MakeUnique<ECCVerifyHandle>();
|
const static auto verify_handle = MakeUnique<ECCVerifyHandle>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
void initialize();
|
||||||
void test_one_input(const std::vector<uint8_t>& buffer);
|
void test_one_input(const std::vector<uint8_t>& buffer);
|
||||||
|
|
||||||
#endif // BITCOIN_TEST_FUZZ_FUZZ_H
|
#endif // BITCOIN_TEST_FUZZ_FUZZ_H
|
||||||
|
|
Loading…
Add table
Reference in a new issue