[server] disable external command execution in AFL fuzzing mode
This commit is contained in:
parent
7c23cb72f1
commit
ff052bf74f
@ -99,6 +99,10 @@ _run_extcmd(uid_t uid, gid_t gid, const char *cmd, char *so_buf,
|
|||||||
int pipe_fd[2];
|
int pipe_fd[2];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AFL_FUZZING
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
*pid_status = 0;
|
*pid_status = 0;
|
||||||
|
|
||||||
/* Even without execvpe() we examine the command for basic validity
|
/* 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;
|
FILE *fd = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AFL_FUZZING
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
*pid_status = 0;
|
*pid_status = 0;
|
||||||
|
|
||||||
/* Even without execvpe() we examine the command for basic validity
|
/* Even without execvpe() we examine the command for basic validity
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user