From 38b947b94fbe003e7caa6955302d6e6033e4cc5d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 May 2017 14:44:07 +0200 Subject: 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. --- tools/syz-symbolize/symbolize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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 { -- cgit mrf-deployment