From 46b9efbf7dca38a601c72793d89f327cd725b295 Mon Sep 17 00:00:00 2001 From: abhisen7 Date: Mon, 19 May 2025 11:52:40 +0200 Subject: [PATCH] Execute ASan targets without leak checks to read AFL_MAP_SIZE --- afl-cmin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afl-cmin.py b/afl-cmin.py index 5ceace8f..feceba69 100755 --- a/afl-cmin.py +++ b/afl-cmin.py @@ -579,7 +579,7 @@ def main(): afl_map_size = None if b"AFL_DUMP_MAP_SIZE" in open(args.exe, "rb").read(): output = subprocess.run( - [args.exe], capture_output=True, env={"AFL_DUMP_MAP_SIZE": "1"} + [args.exe], capture_output=True, env={"AFL_DUMP_MAP_SIZE": "1", "ASAN_OPTIONS": "detect_leaks=0"} ).stdout afl_map_size = int(output) logger.info("Setting AFL_MAP_SIZE=%d", afl_map_size)