mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
Execute ASan targets without leak checks to read AFL_MAP_SIZE
This commit is contained in:
@ -579,7 +579,7 @@ def main():
|
|||||||
afl_map_size = None
|
afl_map_size = None
|
||||||
if b"AFL_DUMP_MAP_SIZE" in open(args.exe, "rb").read():
|
if b"AFL_DUMP_MAP_SIZE" in open(args.exe, "rb").read():
|
||||||
output = subprocess.run(
|
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
|
).stdout
|
||||||
afl_map_size = int(output)
|
afl_map_size = int(output)
|
||||||
logger.info("Setting AFL_MAP_SIZE=%d", afl_map_size)
|
logger.info("Setting AFL_MAP_SIZE=%d", afl_map_size)
|
||||||
|
Reference in New Issue
Block a user