diff options
author | van Hauser <vh@thc.org> | 2021-11-18 10:24:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 10:24:25 +0100 |
commit | e131d0fc55ddc34e2a59c13b3bb24f4bc559301b (patch) | |
tree | 97b9b112d4529a96d2fe46d3a7f481dee2a2b175 /instrumentation/afl-compiler-rt.o.c | |
parent | 132630d48d0f9fe50e9388f941433c85636587da (diff) | |
parent | a7b94338505d96a5d18b68916a4da6aa280e3f12 (diff) | |
download | afl++-e131d0fc55ddc34e2a59c13b3bb24f4bc559301b.tar.gz |
Merge pull request #1164 from WorksButNotTested/fix
Fix
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 759c813a..3489c7f8 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -1904,8 +1904,7 @@ void __cmplog_rtn_hook_n(u8 *ptr1, u8 *ptr2, u64 len) { if (unlikely(!len)) return; int l = MIN(31, len); - if ((l = area_is_valid(ptr1, l)) <= 0 || - (l = area_is_valid(ptr2, l)) <= 0) + if ((l = area_is_valid(ptr1, l)) <= 0 || (l = area_is_valid(ptr2, l)) <= 0) return; // fprintf(stderr, "RTN2 %u\n", l); @@ -2247,5 +2246,11 @@ void __afl_coverage_interesting(u8 val, u32 id) { } +void __afl_set_persistent_mode(u8 mode) { + + is_persistent = mode; + +} + #undef write_error |