diff options
author | vanhauser-thc <vh@thc.org> | 2023-02-02 12:13:48 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-02-02 12:13:48 +0100 |
commit | 25b4b32627a1ef1e65b328f90f3ad1fd25d8f906 (patch) | |
tree | e4d665ee92449e4cf3c7fd519d2e8a77b1f34b8b | |
parent | 4946e9cc3a340efd9b08807ae5cb0a657e0214a9 (diff) | |
download | afl++-25b4b32627a1ef1e65b328f90f3ad1fd25d8f906.tar.gz |
small fix to compiler rt
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 6ba19b5a..b1ce4427 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -1582,6 +1582,8 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) { to avoid duplicate calls (which can happen as an artifact of the underlying implementation in LLVM). */ + if (__afl_final_loc < 3) __afl_final_loc = 3; // we skip the first 4 entries + *(start++) = ++__afl_final_loc; while (start < stop) { |