mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 10:38:07 +00:00
allow /tmp
This commit is contained in:
@ -2128,14 +2128,17 @@ void check_binary(afl_state_t *afl, u8 *fname) {
|
||||
|
||||
/* Check for blatant user errors. */
|
||||
|
||||
if ((!strncmp(afl->fsrv.target_path, "/tmp/", 5) &&
|
||||
!strchr(afl->fsrv.target_path + 5, '/')) ||
|
||||
(!strncmp(afl->fsrv.target_path, "/var/tmp/", 9) &&
|
||||
!strchr(afl->fsrv.target_path + 9, '/'))) {
|
||||
/* disabled. not a real-worl scenario where this is a problem.
|
||||
if ((!strncmp(afl->fsrv.target_path, "/tmp/", 5) &&
|
||||
!strchr(afl->fsrv.target_path + 5, '/')) ||
|
||||
(!strncmp(afl->fsrv.target_path, "/var/tmp/", 9) &&
|
||||
!strchr(afl->fsrv.target_path + 9, '/'))) {
|
||||
|
||||
FATAL("Please don't keep binaries in /tmp or /var/tmp");
|
||||
FATAL("Please don't keep binaries in /tmp or /var/tmp");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
fd = open(afl->fsrv.target_path, O_RDONLY);
|
||||
|
||||
|
Reference in New Issue
Block a user