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-21 15:47:10 +0200
committervan Hauser <vh@thc.org>2020-09-21 15:47:10 +0200
commit207cbd5cf7c1956969f42e89bfcb9a0ab451e351 (patch)
treea66af166a8c5ea07adc570b28d68ed53433876dc /custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp
parentf34fe1f81e804bccdda5315968f6a73a47184822 (diff)
downloadafl++-207cbd5cf7c1956969f42e89bfcb9a0ab451e351.tar.gz
fix and update libfuzzer custom mutator
Diffstat (limited to 'custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp')
-rw-r--r--custom_mutators/libfuzzer/FuzzerExtFunctionsWeak.cpp7
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"