diff options
author | Your Name <you@example.com> | 2021-11-17 20:27:45 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2021-11-17 20:27:45 +0000 |
commit | e88509ac224e21738063c25a86e32f57e655f2dd (patch) | |
tree | e0da3b8b2e610009640c6c9f95ae18622f114c30 /instrumentation/afl-compiler-rt.o.c | |
parent | 43458f7e8b4963f2c3fbade69379c2d2e0654989 (diff) | |
download | afl++-e88509ac224e21738063c25a86e32f57e655f2dd.tar.gz |
Add __afl_set_persistent_mode
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 |