mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 03:49:45 +00:00
syz-manager: don't print empty tag on report page
This commit is contained in:
parent
f9f0e027d8
commit
d1e3265562
@ -256,11 +256,15 @@ func (mgr *Manager) httpReport(w http.ResponseWriter, r *http.Request) {
|
||||
log, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.stats.log"))
|
||||
stats, _ := ioutil.ReadFile(filepath.Join(mgr.crashdir, crashID, "repro.stats"))
|
||||
|
||||
fmt.Fprintf(w, "Syzkaller hit '%s' bug on commit %s.\n\n", trimNewLines(desc), trimNewLines(tag))
|
||||
commitDesc := ""
|
||||
if len(tag) != 0 {
|
||||
commitDesc = fmt.Sprintf(" on commit %s.", trimNewLines(tag))
|
||||
}
|
||||
fmt.Fprintf(w, "Syzkaller hit '%s' bug%s.\n\n", trimNewLines(desc), commitDesc)
|
||||
if len(rep) != 0 {
|
||||
guiltyFile := report.ExtractGuiltyFile(rep)
|
||||
if guiltyFile != "" {
|
||||
fmt.Fprintf(w, "The guilty file is: %v.\n\n", guiltyFile)
|
||||
fmt.Fprintf(w, "Guilty file: %v\n\n", guiltyFile)
|
||||
maintainers, err := report.GetMaintainers(mgr.cfg.Kernel_Src, guiltyFile)
|
||||
if err == nil {
|
||||
fmt.Fprintf(w, "Maintainers: %v\n\n", maintainers)
|
||||
|
Loading…
Reference in New Issue
Block a user