diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-11-07 15:52:28 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2017-11-07 16:17:18 +0100 |
| commit | a2c64463a2d64431bfb2da6fa157bfd6deb61010 (patch) | |
| tree | 82e723810f79f140f2d12706700a1619d5f956d5 /pkg | |
| parent | ef579626347554b4b153eec2f9e58a3f500587e5 (diff) | |
execprog: correctly handle fault injections
syz-execprog doesn't utilize info about fault injections from a prog log.
Since syz-execprog is used by the repro package to reproduce crashes,
crashes caused by fault injections might not reproduce.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/repro/repro.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index 51b055640..492e4673a 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -354,9 +354,9 @@ func (ctx *context) extractProgBisect(entries []*prog.LogEntry, baseDuration tim for _, entry := range entries { prog.Calls = append(prog.Calls, entry.P.Calls...) } + dur := duration(len(entries)) * 3 / 2 // Execute the program without fault injection. - dur := duration(len(entries)) * 3 / 2 crashed, err := ctx.testProg(prog, dur, opts) if err != nil { return nil, err |
