mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-30 06:40:50 +00:00
manager: don't save empty reports
This commit is contained in:
parent
40280fa543
commit
c7aabee440
@ -313,13 +313,15 @@ func (mgr *Manager) saveCrasher(vmCfg *vm.Config, desc string, text, output []by
|
||||
if err := ioutil.WriteFile(fn, output, 0660); err != nil {
|
||||
continue
|
||||
}
|
||||
symbolized, err := report.Symbolize(mgr.cfg.Vmlinux, text)
|
||||
if err != nil {
|
||||
logf(0, "failed to symbolize crash: %v", err)
|
||||
} else {
|
||||
text = symbolized
|
||||
if len(text) > 0 {
|
||||
symbolized, err := report.Symbolize(mgr.cfg.Vmlinux, text)
|
||||
if err != nil {
|
||||
logf(0, "failed to symbolize crash: %v", err)
|
||||
} else {
|
||||
text = symbolized
|
||||
}
|
||||
ioutil.WriteFile(filepath.Join(dir, fmt.Sprintf("report%v", i)), []byte(text), 0660)
|
||||
}
|
||||
ioutil.WriteFile(filepath.Join(dir, fmt.Sprintf("report%v", i)), []byte(text), 0660)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user