mirror of
https://github.com/reactos/syzkaller.git
synced 2024-10-08 01:23:20 +00:00
fix crash output
This commit is contained in:
parent
b95ad23cfe
commit
bb15aa8bfd
@ -254,8 +254,11 @@ func (inst *Instance) Run() {
|
||||
outputMu.Unlock()
|
||||
time.Sleep(5 * time.Second)
|
||||
outputMu.Lock()
|
||||
output = output[matchPos:]
|
||||
loc = crashRe.FindAllIndex(output, -1)
|
||||
loc = crashRe.FindAllIndex(output[matchPos:], -1)
|
||||
for i := range loc {
|
||||
loc[i][0] += matchPos
|
||||
loc[i][1] += matchPos
|
||||
}
|
||||
start := loc[0][0] - contextSize
|
||||
if start < 0 {
|
||||
start = 0
|
||||
|
@ -291,8 +291,11 @@ func (inst *Instance) Run() {
|
||||
outputMu.Unlock()
|
||||
time.Sleep(5 * time.Second)
|
||||
outputMu.Lock()
|
||||
output = output[matchPos:]
|
||||
loc = crashRe.FindAllIndex(output, -1)
|
||||
loc = crashRe.FindAllIndex(output[matchPos:], -1)
|
||||
for i := range loc {
|
||||
loc[i][0] += matchPos
|
||||
loc[i][1] += matchPos
|
||||
}
|
||||
start := loc[0][0] - contextSize
|
||||
if start < 0 {
|
||||
start = 0
|
||||
|
Loading…
Reference in New Issue
Block a user