mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 05:23:43 +00:00
adjustment
This commit is contained in:
@ -475,7 +475,7 @@ if (afl && afl->custom_mutators_count) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Skip built-in minimization if custom trimmer is successful
|
// Skip built-in minimization if custom trimmer is successful
|
||||||
if (custom_trimmer_success) {
|
if (in_len <= 1) {
|
||||||
if (tmp_buf) { ck_free(tmp_buf); }
|
if (tmp_buf) { ck_free(tmp_buf); }
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1358,26 +1358,27 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
read_initial_file();
|
read_initial_file();
|
||||||
|
|
||||||
// Initialize AFL state for custom mutators
|
// Initialize AFL state for custom mutators
|
||||||
afl = calloc(1, sizeof(afl_state_t));
|
afl = calloc(1, sizeof(afl_state_t));
|
||||||
if (afl) {
|
if (afl) {
|
||||||
afl->fsrv.dev_urandom_fd = open("/dev/urandom", O_RDONLY);
|
int urandom_fd = open("/dev/urandom", O_RDONLY);
|
||||||
if (afl->fsrv.dev_urandom_fd < 0) { PFATAL("Unable to open /dev/urandom"); }
|
if (urandom_fd < 0) { PFATAL("Unable to open /dev/urandom"); }
|
||||||
|
|
||||||
list_init(&afl->custom_mutator_list);
|
list_init(&afl->custom_mutator_list);
|
||||||
afl->custom_mutators_count = 0;
|
afl->custom_mutators_count = 0;
|
||||||
|
|
||||||
afl->afl_env.afl_custom_mutator_library = getenv("AFL_CUSTOM_MUTATOR_LIBRARY");
|
afl->afl_env.afl_custom_mutator_library = getenv("AFL_CUSTOM_MUTATOR_LIBRARY");
|
||||||
afl->afl_env.afl_python_module = getenv("AFL_PYTHON_MODULE");
|
afl->afl_env.afl_python_module = getenv("AFL_PYTHON_MODULE");
|
||||||
|
|
||||||
afl->fsrv = *fsrv;
|
afl->shm = shm;
|
||||||
|
afl->out_dir = ".";
|
||||||
|
|
||||||
afl->shm = shm;
|
memcpy(&afl->fsrv, fsrv, sizeof(afl_forkserver_t));
|
||||||
afl->out_dir = "."; // Répertoire temporaire
|
|
||||||
afl->fsrv.use_shmem_fuzz = fsrv->use_shmem_fuzz;
|
|
||||||
|
|
||||||
setup_custom_mutators(afl);
|
afl->fsrv.dev_urandom_fd = urandom_fd;
|
||||||
}
|
|
||||||
|
setup_custom_mutators(afl);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (!fsrv->nyx_mode) { (void)check_binary_signatures(fsrv->target_path); }
|
if (!fsrv->nyx_mode) { (void)check_binary_signatures(fsrv->target_path); }
|
||||||
|
Reference in New Issue
Block a user