Skip to content

Commit 6e5221d

Browse files
committed
modify stdout, delete pool.py
1 parent 49e9ddd commit 6e5221d

2 files changed

Lines changed: 5 additions & 273 deletions

File tree

fuzz/fuzz_runner_pool.py

Lines changed: 0 additions & 271 deletions
This file was deleted.

fuzz/run_fuzz_target.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ def run_command(
6060
errors="replace"
6161
)
6262
with open(log_file, "a", encoding="utf-8") as f:
63-
for line in iter(process.stdout.readline, ""):
64-
f.write(line)
63+
if process.stdout is not None:
64+
for line in iter(process.stdout.readline, ""):
65+
f.write(line)
66+
else:
67+
log_and_print("⚠️ Warning: process.stdout is None", log_file)
6568
process.wait()
6669
return process.returncode in [0, *allowed_exit_codes]
6770
except Exception as e:

0 commit comments

Comments
 (0)