diff options
author | van Hauser <vh@thc.org> | 2020-09-21 15:47:10 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-09-21 15:47:10 +0200 |
commit | 207cbd5cf7c1956969f42e89bfcb9a0ab451e351 (patch) | |
tree | a66af166a8c5ea07adc570b28d68ed53433876dc /custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp | |
parent | f34fe1f81e804bccdda5315968f6a73a47184822 (diff) | |
download | afl++-207cbd5cf7c1956969f42e89bfcb9a0ab451e351.tar.gz |
fix and update libfuzzer custom mutator
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r-- | custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp b/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp index caf1a7ef..c7a1d05e 100644 --- a/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp +++ b/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp @@ -46,9 +46,10 @@ namespace fuzzer { ExternalFunctions::ExternalFunctions() { \ - #define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) this->NAME = ::NAME; - CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)), - #NAME, WARN); + #define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) \ + this->NAME = ::NAME; \ + CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)), \ + #NAME, WARN); #include "FuzzerExtFunctions.def" |