about summary refs log tree commit diff
path: root/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-09-11 08:56:28 +0200
committervan Hauser <vh@thc.org>2020-09-11 08:56:28 +0200
commit862b6d0382a132cc5338cfdcdc2c30c2cd8d578b (patch)
treed324cfafb78efa62de6f65656f7a196ab7e6ccb1 /custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp
parent543765bc0df02ef7d2db3690383a857ca7963286 (diff)
downloadafl++-862b6d0382a132cc5338cfdcdc2c30c2cd8d578b.tar.gz
fix for afl-compiler-rt to only send dictionary data if there is some
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp b/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp
index c7a1d05e..bbd8f3ba 100644
--- a/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp
+++ b/custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp
@@ -46,10 +46,9 @@ 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"