diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-14 09:49:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 16:02:37 +0200 |
| commit | c0cabacda7db153dcdb0940972a680296a9e56f3 (patch) | |
| tree | f8d7182f5862bed821e8b6c3ea00fbf96b79276e /pkg/repro | |
| parent | c6d248ce95cf3e74ba38ca431ea4b018f75e1881 (diff) | |
syz-fuzzer, syz-execprog: add -arch flag
arch flag specifies target arch, which can be different from GOARCH.
For example, 386 executor with amd64 fuzzer.
Diffstat (limited to 'pkg/repro')
| -rw-r--r-- | pkg/repro/repro.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index 54c4a248a..c3aaa8a22 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -537,8 +537,10 @@ func (ctx *context) testProgs(entries []*prog.LogEntry, duration time.Duration, } program += "]" } - command := fmt.Sprintf("%v -executor %v -cover=0 -procs=%v -repeat=%v -sandbox %v -threaded=%v -collide=%v %v", - inst.execprogBin, inst.executorBin, opts.Procs, repeat, opts.Sandbox, opts.Threaded, opts.Collide, vmProgFile) + command := fmt.Sprintf("%v -executor %v -arch=%v -cover=0 -procs=%v -repeat=%v"+ + " -sandbox %v -threaded=%v -collide=%v %v", + inst.execprogBin, inst.executorBin, ctx.cfg.TargetArch, opts.Procs, repeat, + opts.Sandbox, opts.Threaded, opts.Collide, vmProgFile) ctx.reproLog(2, "testing program (duration=%v, %+v): %s", duration, opts, program) return ctx.testImpl(inst.Instance, command, duration) } |
