[server] disable external command execution in AFL fuzzing mode

This commit is contained in:
Michael Rash 2015-06-01 19:57:49 -07:00
parent 7c23cb72f1
commit ff052bf74f

View File

@ -99,6 +99,10 @@ _run_extcmd(uid_t uid, gid_t gid, const char *cmd, char *so_buf,
int pipe_fd[2];
#endif
#if AFL_FUZZING
return 0;
#endif
*pid_status = 0;
/* Even without execvpe() we examine the command for basic validity
@ -565,6 +569,10 @@ int _run_extcmd_write(const char *cmd, const char *cmd_write, int *pid_status,
FILE *fd = NULL;
#endif
#if AFL_FUZZING
return 0;
#endif
*pid_status = 0;
/* Even without execvpe() we examine the command for basic validity