Skip to content

Commit 27d6d35

Browse files
small fix to run cmplog binaries outside afl-fuzz
1 parent 1d4a3c8 commit 27d6d35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm_mode/afl-llvm-rt.o.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ static int area_is_mapped(void* ptr, size_t len) {
543543

544544
void __cmplog_rtn_hook(void* ptr1, void* ptr2) {
545545

546+
if (!__afl_cmp_map) return;
547+
546548
if (!area_is_mapped(ptr1, 32) || !area_is_mapped(ptr2, 32)) return;
547549

548550
uintptr_t k = (uintptr_t)__builtin_return_address(0);

0 commit comments

Comments
 (0)