mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
code format
This commit is contained in:
@ -63,20 +63,25 @@ class CompareTransform : public ModulePass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if LLVM_MAJOR < 11
|
#if LLVM_MAJOR < 11
|
||||||
#if LLVM_VERSION_MAJOR >= 4
|
#if LLVM_VERSION_MAJOR >= 4
|
||||||
StringRef getPassName() const override {
|
StringRef getPassName() const override {
|
||||||
#else
|
|
||||||
|
#else
|
||||||
const char *getPassName() const override {
|
const char *getPassName() const override {
|
||||||
#endif
|
|
||||||
|
#endif
|
||||||
return "transforms compare functions";
|
return "transforms compare functions";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#if LLVM_MAJOR >= 11 /* use new pass manager */
|
//#if LLVM_MAJOR >= 11 /* use new pass manager
|
||||||
// PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM);
|
/ /*/
|
||||||
//#else
|
// PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM);
|
||||||
|
//#else
|
||||||
bool runOnModule(Module &M) override;
|
bool runOnModule(Module &M) override;
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool transformCmps(Module &M, const bool processStrcmp,
|
bool transformCmps(Module &M, const bool processStrcmp,
|
||||||
@ -106,7 +111,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp,
|
|||||||
#if LLVM_VERSION_MAJOR >= 9
|
#if LLVM_VERSION_MAJOR >= 9
|
||||||
FunctionCallee tolowerFn;
|
FunctionCallee tolowerFn;
|
||||||
#else
|
#else
|
||||||
Function * tolowerFn;
|
Function *tolowerFn;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -167,7 +167,8 @@ static void usage(u8 *argv0, int more_help) {
|
|||||||
" See docs/README.MOpt.md\n"
|
" See docs/README.MOpt.md\n"
|
||||||
" -c program - enable CmpLog by specifying a binary compiled for "
|
" -c program - enable CmpLog by specifying a binary compiled for "
|
||||||
"it.\n"
|
"it.\n"
|
||||||
" if using QEMU/FRIDA or if you the fuzzing target is compiled"
|
" if using QEMU/FRIDA or if you the fuzzing target is "
|
||||||
|
"compiled"
|
||||||
" for CmpLog then just use -c 0.\n"
|
" for CmpLog then just use -c 0.\n"
|
||||||
" -l cmplog_opts - CmpLog configuration values (e.g. \"2AT\"):\n"
|
" -l cmplog_opts - CmpLog configuration values (e.g. \"2AT\"):\n"
|
||||||
" 1=small files, 2=larger files (default), 3=all "
|
" 1=small files, 2=larger files (default), 3=all "
|
||||||
@ -1459,7 +1460,8 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
if (!afl->use_banner) { afl->use_banner = argv[optind]; }
|
if (!afl->use_banner) { afl->use_banner = argv[optind]; }
|
||||||
|
|
||||||
if (afl->shm.cmplog_mode && (!strcmp("-", afl->cmplog_binary) || !strcmp("0", afl->cmplog_binary))) {
|
if (afl->shm.cmplog_mode &&
|
||||||
|
(!strcmp("-", afl->cmplog_binary) || !strcmp("0", afl->cmplog_binary))) {
|
||||||
|
|
||||||
afl->cmplog_binary = argv[optind];
|
afl->cmplog_binary = argv[optind];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user