about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-10 09:32:54 +0100
committervanhauser-thc <vh@thc.org>2021-03-10 09:32:54 +0100
commitbff02dae0d344cb51222b75840cc7f1a31ab03eb (patch)
tree2bd353531834a44a40e948703ef2816044daa588
parent851231c846ab4c9fe121f78a5677fa8820e843f3 (diff)
downloadafl++-bff02dae0d344cb51222b75840cc7f1a31ab03eb.tar.gz
cmplog rtn rt fix
-rw-r--r--instrumentation/afl-compiler-rt.o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index ff14b966..74db7089 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1773,7 +1773,7 @@ void __cmplog_rtn_hook(u8 *ptr1, u8 *ptr2) {
 
     if (__afl_cmp_map->headers[k].shape < len) {
 
-      __afl_cmp_map->headers[k].shape = len;
+      __afl_cmp_map->headers[k].shape = len - 1;
 
     }