Skip to content

Commit 45507ee

Browse files
Danylo MocherniukV8-internal LUCI CQ
authored andcommitted
[dumpling] Print differential to console.
Bug: 441467877 Change-Id: Id3793d3065384bfb2e190c626ed014782d9ebb63 Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8977176 Reviewed-by: Michael Achenbach <machenbach@google.com> Commit-Queue: Danylo Mocherniuk <mdanylo@google.com>
1 parent d3a70f9 commit 45507ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/FuzzilliCli/TerminalUI.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ class TerminalUI {
5252
}
5353
}
5454

55+
fuzzer.registerEventListener(for: fuzzer.events.DifferentialFound) { differential in
56+
if differential.isUnique {
57+
print("########## Unique Differential Found ##########")
58+
print(fuzzer.lifter.lift(differential.program, withOptions: .includeComments))
59+
}
60+
}
61+
5562
fuzzer.registerEventListener(for: fuzzer.events.CrashFound) { crash in
5663
if crash.isUnique {
5764
print("########## Unique Crash Found ##########")

0 commit comments

Comments
 (0)