mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 04:58:08 +00:00
Do clang-format
This commit is contained in:
@ -159,13 +159,20 @@ bool isInWhitelist(llvm::Function *F) {
|
|||||||
* matching if AFL_LLVM_WHITELIST_FNMATCH is set */
|
* matching if AFL_LLVM_WHITELIST_FNMATCH is set */
|
||||||
|
|
||||||
if (instFilename.str().length() >= it->length()) {
|
if (instFilename.str().length() >= it->length()) {
|
||||||
if (enable_fnmatch && fnmatch((*it).c_str(),
|
|
||||||
instFilename.str().c_str(), 0) == 0) {
|
if (enable_fnmatch &&
|
||||||
|
fnmatch((*it).c_str(), instFilename.str().c_str(), 0) == 0) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (!enable_fnmatch && instFilename.str().compare(
|
|
||||||
instFilename.str().length() - it->length(),
|
} else if (!enable_fnmatch &&
|
||||||
it->length(), *it) == 0) {
|
|
||||||
|
instFilename.str().compare(
|
||||||
|
instFilename.str().length() - it->length(),
|
||||||
|
it->length(), *it) == 0) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -200,13 +207,20 @@ bool isInWhitelist(llvm::Function *F) {
|
|||||||
* matching if AFL_LLVM_WHITELIST_FNMATCH is set */
|
* matching if AFL_LLVM_WHITELIST_FNMATCH is set */
|
||||||
|
|
||||||
if (instFilename.str().length() >= it->length()) {
|
if (instFilename.str().length() >= it->length()) {
|
||||||
if (enable_fnmatch && fnmatch((*it).c_str(),
|
|
||||||
instFilename.str().c_str(), 0) == 0) {
|
if (enable_fnmatch &&
|
||||||
|
fnmatch((*it).c_str(), instFilename.str().c_str(), 0) == 0) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (!enable_fnmatch && instFilename.str().compare(
|
|
||||||
instFilename.str().length() - it->length(),
|
} else if (!enable_fnmatch &&
|
||||||
it->length(), *it) == 0) {
|
|
||||||
|
instFilename.str().compare(
|
||||||
|
instFilename.str().length() - it->length(),
|
||||||
|
it->length(), *it) == 0) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ char *afl_environment_variables[] = {
|
|||||||
"AFL_LLVM_LAF_SPLIT_FLOATS", "AFL_LLVM_LAF_SPLIT_SWITCHES",
|
"AFL_LLVM_LAF_SPLIT_FLOATS", "AFL_LLVM_LAF_SPLIT_SWITCHES",
|
||||||
"AFL_LLVM_LAF_ALL", "AFL_LLVM_LAF_TRANSFORM_COMPARES", "AFL_LLVM_MAP_ADDR",
|
"AFL_LLVM_LAF_ALL", "AFL_LLVM_LAF_TRANSFORM_COMPARES", "AFL_LLVM_MAP_ADDR",
|
||||||
"AFL_LLVM_MAP_DYNAMIC", "AFL_LLVM_NGRAM_SIZE", "AFL_NGRAM_SIZE",
|
"AFL_LLVM_MAP_DYNAMIC", "AFL_LLVM_NGRAM_SIZE", "AFL_NGRAM_SIZE",
|
||||||
"AFL_LLVM_NOT_ZERO", "AFL_LLVM_WHITELIST" , "AFL_LLVM_WHITELIST_FNMATCH",
|
"AFL_LLVM_NOT_ZERO", "AFL_LLVM_WHITELIST", "AFL_LLVM_WHITELIST_FNMATCH",
|
||||||
"AFL_LLVM_SKIP_NEVERZERO", "AFL_NO_AFFINITY", "AFL_LLVM_LTO_STARTID",
|
"AFL_LLVM_SKIP_NEVERZERO", "AFL_NO_AFFINITY", "AFL_LLVM_LTO_STARTID",
|
||||||
"AFL_LLVM_LTO_DONTWRITEID", "AFL_NO_ARITH", "AFL_NO_BUILTIN",
|
"AFL_LLVM_LTO_DONTWRITEID", "AFL_NO_ARITH", "AFL_NO_BUILTIN",
|
||||||
"AFL_NO_CPU_RED", "AFL_NO_FORKSRV", "AFL_NO_UI", "AFL_NO_PYTHON",
|
"AFL_NO_CPU_RED", "AFL_NO_FORKSRV", "AFL_NO_UI", "AFL_NO_PYTHON",
|
||||||
|
Reference in New Issue
Block a user