diff options
author | toka <tokazerkje@outlook.com> | 2023-10-02 15:02:24 +0200 |
---|---|---|
committer | toka <tokazerkje@outlook.com> | 2023-10-02 15:02:24 +0200 |
commit | d9462657a892311f818330c9df128af09e704ae2 (patch) | |
tree | 6becd277b4bcf26c52a6ab8c5fac821d8922cdb1 | |
parent | bec74ae23c1a8abedbcec28a9afd3269746612bf (diff) | |
download | afl++-d9462657a892311f818330c9df128af09e704ae2.tar.gz |
urandom
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 723b946b..85ee9f71 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -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; } |