mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
Merge branch 'debug' into dev
This commit is contained in:
@ -498,11 +498,21 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
|
||||
|
||||
char pid_buf[16];
|
||||
sprintf(pid_buf, "%d", fsrv->fsrv_pid);
|
||||
if (fsrv->cmplog_binary)
|
||||
|
||||
if (fsrv->taint_mode) {
|
||||
|
||||
setenv("__AFL_TARGET_PID3", pid_buf, 1);
|
||||
|
||||
} else if (fsrv->cmplog_binary) {
|
||||
|
||||
setenv("__AFL_TARGET_PID2", pid_buf, 1);
|
||||
else
|
||||
|
||||
} else {
|
||||
|
||||
setenv("__AFL_TARGET_PID1", pid_buf, 1);
|
||||
|
||||
}
|
||||
|
||||
/* Close the unneeded endpoints. */
|
||||
|
||||
close(ctl_pipe[0]);
|
||||
@ -937,7 +947,7 @@ void afl_fsrv_write_to_testcase(afl_forkserver_t *fsrv, u8 *buf, size_t len) {
|
||||
|
||||
} else {
|
||||
|
||||
s32 fd = fsrv->out_fd;
|
||||
s32 fd;
|
||||
|
||||
if (fsrv->out_file) {
|
||||
|
||||
@ -956,6 +966,7 @@ void afl_fsrv_write_to_testcase(afl_forkserver_t *fsrv, u8 *buf, size_t len) {
|
||||
|
||||
} else {
|
||||
|
||||
fd = fsrv->out_fd;
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user