Skip to content

Commit 0696c90

Browse files
Merge pull request AFLplusplus#2524 from serbal/cmin_py_env_fix
Inherit existing environment in afl_cmin.py for map size calculation
2 parents f73660b + ff12584 commit 0696c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

afl-cmin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def main():
647647
output = subprocess.run(
648648
[args.exe],
649649
capture_output=True,
650-
env={"AFL_DUMP_MAP_SIZE": "1", "ASAN_OPTIONS": "detect_leaks=0"},
650+
env={**os.environ, "AFL_DUMP_MAP_SIZE": "1", "ASAN_OPTIONS": "detect_leaks=0"},
651651
).stdout
652652
afl_map_size = int(output)
653653
logger.info("Setting AFL_MAP_SIZE=%d", afl_map_size)

0 commit comments

Comments
 (0)