about summary refs log tree commit diff
diff options
context:
space:
mode:
authortoka <tokazerkje@outlook.com>2023-10-01 18:20:50 +0200
committertoka <tokazerkje@outlook.com>2023-10-01 18:20:50 +0200
commitefae28f27cfbdd2b38d2fe793f24baaa2211eb1d (patch)
tree0d573c2270a1733e503cb77f2ca7606f0725ceee
parent6b73dee7da4e4e8bd227a9cb156c7a683d124682 (diff)
downloadafl++-efae28f27cfbdd2b38d2fe793f24baaa2211eb1d.tar.gz
typo
-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 dd9aae77..723b946b 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -2294,7 +2294,7 @@ void __cmplog_rtn_hook_strn(u8 *ptr1, u8 *ptr2, u64 len) {
   int len1 = strnlen(ptr1, len0);
   if (len1 < 31) len1 = area_is_valid(ptr1, len1 + 1);
   int len2 = strnlen(ptr2, len0);
-  if (len2 < 31) len2 = area_is_valid(ptr1, len2 + 1);
+  if (len2 < 31) len2 = area_is_valid(ptr2, len2 + 1);
   int l = MAX(len1, len2);
   if (l < 2) return;