Skip to content

Commit

Permalink
style: print correct crash file
Browse files Browse the repository at this point in the history
  • Loading branch information
NSEcho committed Sep 17, 2023
1 parent 771fbc3 commit feab57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ var fuzzCmd = &cobra.Command{

sess.On("detached", func(reason frida.SessionDetachReason, crash *frida.Crash) {
l.Infof("Session detached; reason=%s", reason.String())
out := crashSHA256(lastInput)
out := fmt.Sprintf("fcrash_%s_%s", app, crashSHA256(lastInput))
err := func() error {
f, err := os.Create(fmt.Sprintf("fcrash_%s_%s", app, out))
f, err := os.Create(out)
if err != nil {
return err
}
Expand Down

0 comments on commit feab57d

Please sign in to comment.