This commit is contained in:
vanhauser-thc
2022-06-20 17:59:14 +02:00
parent 5ed993d74e
commit 1a4c0d2ecd
3 changed files with 9 additions and 4 deletions

View File

@ -76,6 +76,7 @@ cc_binary {
srcs: [ srcs: [
"src/afl-fuzz*.c", "src/afl-fuzz*.c",
"src/afl-common.c", "src/afl-common.c",
"src/afl-forkserver.c",
"src/afl-sharedmem.c", "src/afl-sharedmem.c",
"src/afl-forkserver.c", "src/afl-forkserver.c",
"src/afl-performance.c", "src/afl-performance.c",

View File

@ -396,7 +396,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
snprintf(llvm_fullpath, sizeof(llvm_fullpath), "%s/clang", snprintf(llvm_fullpath, sizeof(llvm_fullpath), "%s/clang",
LLVM_BINDIR); LLVM_BINDIR);
else else
snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANG_BIN); snprintf(llvm_fullpath, sizeof(llvm_fullpath), "%s", CLANG_BIN);
alt_cc = llvm_fullpath; alt_cc = llvm_fullpath;
} }

View File

@ -25,8 +25,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#define _GNU_SOURCE #ifndef _GNU_SOURCE
#define __USE_GNU #define _GNU_SOURCE
#endif
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include <math.h> #include <math.h>
@ -718,7 +722,7 @@ char *get_afl_env(char *env) {
if ((val = getenv(env))) { if ((val = getenv(env))) {
if (*val) { if (*val) {
if (!be_quiet) { if (!be_quiet) {
OKF("Enabled environment variable %s with value %s", env, val); OKF("Enabled environment variable %s with value %s", env, val);