mirror of
https://github.com/reactos/syzkaller.git
synced 2024-10-07 17:13:26 +00:00
syz-repro: fix false "not executing programs"
This commit is contained in:
parent
ecaaca55fc
commit
40280fa543
@ -83,7 +83,7 @@ func main() {
|
||||
idx := pos
|
||||
pos++
|
||||
if idx%len(progs) == 0 && time.Since(lastPrint) > 5*time.Second {
|
||||
log.Printf("executed %v programs\n", idx)
|
||||
log.Printf("executed programs: %v", idx)
|
||||
lastPrint = time.Now()
|
||||
}
|
||||
posMu.Unlock()
|
||||
|
5
vm/vm.go
5
vm/vm.go
@ -126,7 +126,10 @@ func MonitorExecution(outc <-chan []byte, errc <-chan error, local, needOutput b
|
||||
}
|
||||
case out := <-outc:
|
||||
output = append(output, out...)
|
||||
if bytes.Index(output[matchPos:], []byte("executing program")) != -1 {
|
||||
if bytes.Index(output[matchPos:], []byte("executing program")) != -1 { // syz-fuzzer output
|
||||
lastExecuteTime = time.Now()
|
||||
}
|
||||
if bytes.Index(output[matchPos:], []byte("executed programs:")) != -1 { // syz-execprog output
|
||||
lastExecuteTime = time.Now()
|
||||
}
|
||||
if report.ContainsCrash(output[matchPos:]) {
|
||||
|
Loading…
Reference in New Issue
Block a user