mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 17:51:32 +00:00
urandom
This commit is contained in:
@ -666,8 +666,8 @@ static void __afl_map_shm(void) {
|
||||
}
|
||||
|
||||
if (id_str) {
|
||||
|
||||
if ((__afl_dummy_fd[1] = open("/dev/null", O_WRONLY)) < 0) {
|
||||
// /dev/null doesn't work so we use /dev/urandom
|
||||
if ((__afl_dummy_fd[1] = open("/dev/urandom", O_WRONLY)) < 0) {
|
||||
|
||||
if (pipe(__afl_dummy_fd) < 0) { __afl_dummy_fd[1] = 1; }
|
||||
|
||||
|
Reference in New Issue
Block a user