Skip to content

Commit f8916c6

Browse files
Report how to reproduce the crash found by differential fuzzing
1 parent 7971bbb commit f8916c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FuzzTesting/differential.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ def run(args):
5050
# If the target program fails, save the wasm file
5151
crash_file = os.path.join(fail_dir, f"diff-{i}.wasm")
5252
shutil.copy(wasm_file, crash_file)
53-
print(f"Found crash in iteration {i}")
53+
print(f"Found crash in iteration {i};"
54+
" reproduce with {args.program} {crash_file}")
5455
except subprocess.TimeoutExpired:
5556
timeout_file = os.path.join(fail_dir, f"timeout-{i}.wasm")
5657
shutil.copy(wasm_file, timeout_file)
57-
print(f"Timeout in iteration {i}")
58+
print(f"Timeout in iteration {i};"
59+
" reproduce with {args.program} {timeout_file})")
5860
except KeyboardInterrupt:
5961
print("Interrupted by user")
6062
break

0 commit comments

Comments
 (0)