diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-05-23 14:44:07 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-05-23 14:44:07 +0200 |
| commit | 38b947b94fbe003e7caa6955302d6e6033e4cc5d (patch) | |
| tree | 443bb7dfad280d1fda3f6d55c959a83bd15f9b68 /tools | |
| parent | b83d2cc8893cb6f6523a796cd12752163c5948b6 (diff) | |
syz-symbolize: symbolize all console output
Currently syz-symbolize uses report.Parse function
that extracts crash messages from console output.
Symbolize all console output instead.
E.g. there can be something on the console that is not crash.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-symbolize/symbolize.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-symbolize/symbolize.go b/tools/syz-symbolize/symbolize.go index 4e5e8564b..d348b7148 100644 --- a/tools/syz-symbolize/symbolize.go +++ b/tools/syz-symbolize/symbolize.go @@ -29,8 +29,8 @@ func main() { fmt.Fprintf(os.Stderr, "failed to open input file: %v\n", err) os.Exit(1) } - if _, parsed, _, _ := report.Parse(text, nil); len(parsed) != 0 { - text = parsed + if console := report.ExtractConsoleOutput(text); len(console) != 0 { + text = console } text, err = report.Symbolize(filepath.Join(*flagLinux, "vmlinux"), text) if err != nil { |
