diff options
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index e29c4483..32e4da85 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -343,7 +343,7 @@ static void __afl_map_shm(void) { send_forkserver_error(FS_ERROR_MAP_ADDR); else send_forkserver_error(FS_ERROR_MMAP); - perror("shmat for map"); + perror("mmap for map"); exit(2); @@ -355,8 +355,6 @@ static void __afl_map_shm(void) { __afl_area_ptr = shmat(shm_id, (void *)__afl_map_addr, 0); -#endif - /* Whooooops. */ if (!__afl_area_ptr || __afl_area_ptr == (void *)-1) { @@ -371,6 +369,8 @@ static void __afl_map_shm(void) { } +#endif + /* Write something into the bitmap so that even with low AFL_INST_RATIO, our parent doesn't give up on us. */ @@ -423,7 +423,7 @@ static void __afl_map_shm(void) { shm_fd = shm_open(shm_file_path, O_RDWR, 0600); if (shm_fd == -1) { - fprintf(stderr, "shm_open() failed\n"); + perror("shm_open() failed\n"); send_forkserver_error(FS_ERROR_SHM_OPEN); exit(1); |