Skip to content

Commit 572c75b

Browse files
committed
fix open call
1 parent e4f3a97 commit 572c75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

afl-cov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def run_cmd(cmd, log_file, cargs, collect, aflrun, fn, timeout=None):
724724

725725
if cargs.disable_cmd_redirection or collect == WANT_OUTPUT \
726726
or collect == LOG_ERRORS:
727-
with open(fh.name, 'r') as f:
727+
with open(fh.name, 'r', 'rb') as f:
728728
for line in f:
729729
out.append(line.rstrip('\n'))
730730
os.unlink(fh.name)

0 commit comments

Comments
 (0)