about summary refs log tree commit diff
path: root/instrumentation/afl-compiler-rt.o.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-08 12:55:05 +0100
committervan Hauser <vh@thc.org>2021-01-08 12:55:05 +0100
commit1827c65596803fae6add7aed269724f4bb041b0c (patch)
tree60116a3409ac199572a5476f675d5f3a375f57b0 /instrumentation/afl-compiler-rt.o.c
parent3d1a25ce4e8862b82662c64fbea000692f300c62 (diff)
downloadafl++-1827c65596803fae6add7aed269724f4bb041b0c.tar.gz
better gcc_plugin error msg
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r--instrumentation/afl-compiler-rt.o.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index add303d7..f194510e 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1437,15 +1437,7 @@ void __afl_coverage_abort() {
 // mark this area as especially interesting
 void __afl_coverage_interesting(u8 val, u32 id) {
 
-  if (id) {
-
-    __afl_area_ptr[id] = val;
-
-  } else {
-
-    __afl_area_ptr[(rand() % __afl_map_size)] = val;
-
-  }
+  __afl_area_ptr[id] = val;
 
 }