aboutsummaryrefslogtreecommitdiff
path: root/instrumentation
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-12-08 22:12:05 +0100
committerhexcoder- <heiko@hexco.de>2020-12-08 22:12:05 +0100
commit2b543a64af94d4749fb6644f562a27bec123f7b5 (patch)
tree7c83a96a14a1ba0982a87c7ae2bcd293a7be033a /instrumentation
parent5bb51688e4187629b500842a14b9740d12d9829a (diff)
downloadAFLplusplus-2b543a64af94d4749fb6644f562a27bec123f7b5.tar.gz
small fixes
Diffstat (limited to 'instrumentation')
-rw-r--r--instrumentation/afl-compiler-rt.o.c8
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);