fix for afl-compiler-rt to only send dictionary data if there is some

This commit is contained in:
van Hauser
2020-09-11 08:56:28 +02:00
parent 543765bc0d
commit 862b6d0382
5 changed files with 22 additions and 20 deletions

View File

@ -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"