mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
code-format
This commit is contained in:
@ -359,6 +359,7 @@ struct InsTrim : public ModulePass {
|
||||
MDNode::get(C, None));
|
||||
|
||||
} else
|
||||
|
||||
#endif
|
||||
{
|
||||
|
||||
|
@ -337,16 +337,18 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
||||
// e.g. compiled download or compiled from github then it's ./lib directory
|
||||
// might not be in the search path. Add it if so.
|
||||
u8 *libdir = strdup(LLVM_LIBDIR);
|
||||
if (strlen(libdir) && strncmp(libdir, "/usr", 4) &&
|
||||
if (cpp_mode && strlen(libdir) && strncmp(libdir, "/usr", 4) &&
|
||||
strncmp(libdir, "/lib", 4)) {
|
||||
|
||||
cc_params[cc_par_cnt++] = "-rpath";
|
||||
cc_params[cc_par_cnt++] = libdir;
|
||||
|
||||
} else
|
||||
} else {
|
||||
|
||||
free(libdir);
|
||||
|
||||
}
|
||||
|
||||
/* Detect stray -v calls from ./configure scripts. */
|
||||
|
||||
while (--argc) {
|
||||
|
@ -865,7 +865,8 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
stdin_file = alloc_printf("%s/.afl-showmap-temp-%u", use_dir, (u32)getpid());
|
||||
stdin_file =
|
||||
alloc_printf("%s/.afl-showmap-temp-%u", use_dir, (u32)getpid());
|
||||
unlink(stdin_file);
|
||||
atexit(at_exit_handler);
|
||||
fsrv->out_fd = open(stdin_file, O_RDWR | O_CREAT | O_EXCL, 0600);
|
||||
|
Reference in New Issue
Block a user