mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-22 06:18:04 +00:00
support new llvm 19 changes
This commit is contained in:
@ -23,6 +23,7 @@
|
|||||||
- disable xml/curl/g_ string transform functions because we do not check
|
- disable xml/curl/g_ string transform functions because we do not check
|
||||||
for null pointers ... TODO
|
for null pointers ... TODO
|
||||||
- ensure shared memory variables are visible in weird build setups
|
- ensure shared memory variables are visible in weird build setups
|
||||||
|
- compatability to new LLVM 19 changes
|
||||||
* afl-cmin
|
* afl-cmin
|
||||||
- work with input files that have a space
|
- work with input files that have a space
|
||||||
* afl-showmap
|
* afl-showmap
|
||||||
@ -68,7 +69,6 @@
|
|||||||
- Prevent temporary files being left behind on aborted afl-whatsup
|
- Prevent temporary files being left behind on aborted afl-whatsup
|
||||||
- More CPU benchmarks added to benchmark/
|
- More CPU benchmarks added to benchmark/
|
||||||
|
|
||||||
|
|
||||||
### Version ++4.10c (release)
|
### Version ++4.10c (release)
|
||||||
- afl-fuzz:
|
- afl-fuzz:
|
||||||
- default power schedule is now EXPLORE, due a fix in fast schedules
|
- default power schedule is now EXPLORE, due a fix in fast schedules
|
||||||
|
@ -136,7 +136,11 @@ bool isIgnoreFunction(const llvm::Function *F) {
|
|||||||
|
|
||||||
for (auto const &ignoreListFunc : ignoreList) {
|
for (auto const &ignoreListFunc : ignoreList) {
|
||||||
|
|
||||||
|
#if LLVM_VERSION_MAJOR >= 19
|
||||||
|
if (F->getName().starts_with(ignoreListFunc)) { return true; }
|
||||||
|
#else
|
||||||
if (F->getName().startswith(ignoreListFunc)) { return true; }
|
if (F->getName().startswith(ignoreListFunc)) { return true; }
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,6 +54,12 @@
|
|||||||
#define nullptr 0
|
#define nullptr 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LLVM_MAJOR >= 19
|
||||||
|
#define STARTSWITH starts_with
|
||||||
|
#else
|
||||||
|
#define STARTSWITH startswith
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "afl-llvm-common.h"
|
#include "afl-llvm-common.h"
|
||||||
|
|
||||||
@ -532,10 +538,10 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isSizedcmp) needs_null = true;
|
if (!isSizedcmp) needs_null = true;
|
||||||
if (Callee->getName().startswith("g_") ||
|
if (Callee->getName().STARTSWITH("g_") ||
|
||||||
Callee->getName().startswith("curl_") ||
|
Callee->getName().STARTSWITH("curl_") ||
|
||||||
Callee->getName().startswith("Curl_") ||
|
Callee->getName().STARTSWITH("Curl_") ||
|
||||||
Callee->getName().startswith("xml"))
|
Callee->getName().STARTSWITH("xml"))
|
||||||
nullCheck = true;
|
nullCheck = true;
|
||||||
|
|
||||||
Value *sizedValue = isSizedcmp ? callInst->getArgOperand(2) : NULL;
|
Value *sizedValue = isSizedcmp ? callInst->getArgOperand(2) : NULL;
|
||||||
|
@ -2844,7 +2844,7 @@ static void maybe_usage(aflcc_state_t *aflcc, int argc, char **argv) {
|
|||||||
" The best is LTO but it often needs RANLIB and AR settings outside "
|
" The best is LTO but it often needs RANLIB and AR settings outside "
|
||||||
"of afl-cc.\n\n");
|
"of afl-cc.\n\n");
|
||||||
|
|
||||||
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
|
#if LLVM_MAJOR >= 11 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
|
||||||
#define NATIVE_MSG \
|
#define NATIVE_MSG \
|
||||||
" LLVM-NATIVE: use llvm's native PCGUARD instrumentation (less " \
|
" LLVM-NATIVE: use llvm's native PCGUARD instrumentation (less " \
|
||||||
"performant)\n"
|
"performant)\n"
|
||||||
|
Reference in New Issue
Block a user