mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
nits
This commit is contained in:
@ -1358,6 +1358,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
afl_preload = getenv("AFL_PRELOAD");
|
afl_preload = getenv("AFL_PRELOAD");
|
||||||
u8 *frida_binary = find_afl_binary(argv[0], "afl-frida-trace.so");
|
u8 *frida_binary = find_afl_binary(argv[0], "afl-frida-trace.so");
|
||||||
|
OKF("Injecting %s ...", frida_binary);
|
||||||
if (afl_preload) {
|
if (afl_preload) {
|
||||||
|
|
||||||
frida_afl_preload = alloc_printf("%s:%s", afl_preload, frida_binary);
|
frida_afl_preload = alloc_printf("%s:%s", afl_preload, frida_binary);
|
||||||
@ -1383,6 +1384,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
} else if (afl->fsrv.frida_mode) {
|
} else if (afl->fsrv.frida_mode) {
|
||||||
|
|
||||||
u8 *frida_binary = find_afl_binary(argv[0], "afl-frida-trace.so");
|
u8 *frida_binary = find_afl_binary(argv[0], "afl-frida-trace.so");
|
||||||
|
OKF("Injecting %s ...", frida_binary);
|
||||||
setenv("LD_PRELOAD", frida_binary, 1);
|
setenv("LD_PRELOAD", frida_binary, 1);
|
||||||
setenv("DYLD_INSERT_LIBRARIES", frida_binary, 1);
|
setenv("DYLD_INSERT_LIBRARIES", frida_binary, 1);
|
||||||
ck_free(frida_binary);
|
ck_free(frida_binary);
|
||||||
|
@ -145,7 +145,7 @@ typedef struct {
|
|||||||
/* Configurable stuff (use AFL_LD_* to set): */
|
/* Configurable stuff (use AFL_LD_* to set): */
|
||||||
|
|
||||||
static size_t max_mem = MAX_ALLOC; /* Max heap usage to permit */
|
static size_t max_mem = MAX_ALLOC; /* Max heap usage to permit */
|
||||||
static u8 alloc_verbose, /* Additional debug messages */
|
static u8 alloc_verbose, /* Additional debug messages */
|
||||||
hard_fail, /* abort() when max_mem exceeded? */
|
hard_fail, /* abort() when max_mem exceeded? */
|
||||||
no_calloc_over, /* abort() on calloc() overflows? */
|
no_calloc_over, /* abort() on calloc() overflows? */
|
||||||
align_allocations; /* Force alignment to sizeof(void*) */
|
align_allocations; /* Force alignment to sizeof(void*) */
|
||||||
@ -504,7 +504,7 @@ __attribute__((constructor)) void __dislocator_init(void) {
|
|||||||
|
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
|
|
||||||
char *tok;
|
char * tok;
|
||||||
unsigned long long mmem = strtoull(tmp, &tok, 10);
|
unsigned long long mmem = strtoull(tmp, &tok, 10);
|
||||||
if (*tok != '\0' || errno == ERANGE || mmem > SIZE_MAX / 1024 / 1024)
|
if (*tok != '\0' || errno == ERANGE || mmem > SIZE_MAX / 1024 / 1024)
|
||||||
FATAL("Bad value for AFL_LD_LIMIT_MB");
|
FATAL("Bad value for AFL_LD_LIMIT_MB");
|
||||||
@ -550,3 +550,4 @@ void *erealloc(void *ptr, size_t len) {
|
|||||||
return realloc(ptr, len);
|
return realloc(ptr, len);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user