mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-21 12:01:00 +00:00
vm: fix string duplication
gometalinter says:
vm/vm.go:295:1⚠️ fuzzerPreemptedStr is unused (deadcode)
This commit is contained in:
parent
1749e412ca
commit
527230f1d9
2
vm/vm.go
2
vm/vm.go
@ -236,7 +236,7 @@ func (mon *monitor) extractError(defaultError string) *report.Report {
|
||||
}
|
||||
// Give it some time to finish writing the error message.
|
||||
mon.waitForOutput()
|
||||
if bytes.Contains(mon.output, []byte("SYZ-FUZZER: PREEMPTED")) {
|
||||
if bytes.Contains(mon.output, []byte(fuzzerPreemptedStr)) {
|
||||
return nil
|
||||
}
|
||||
if !mon.reporter.ContainsCrash(mon.output[mon.matchPos:]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user