From a4d38b39a8e23244bea7a53e9d7a759474f85dae Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 May 2020 08:58:32 +0200 Subject: prog: support disabled attribute Update #477 Update #502 --- tools/syz-mutate/mutate.go | 3 +-- tools/syz-stress/stress.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/syz-mutate/mutate.go b/tools/syz-mutate/mutate.go index 3dcc446c6..af92e14a1 100644 --- a/tools/syz-mutate/mutate.go +++ b/tools/syz-mutate/mutate.go @@ -64,8 +64,7 @@ func main() { os.Exit(1) } rs := rand.NewSource(seed) - prios := target.CalculatePriorities(corpus) - ct := target.BuildChoiceTable(prios, syscalls) + ct := target.BuildChoiceTable(corpus, syscalls) var p *prog.Prog if flag.NArg() == 0 { p = target.Generate(rs, *flagLen, ct) diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go index 18d4fa872..b2fa4cb8e 100644 --- a/tools/syz-stress/stress.go +++ b/tools/syz-stress/stress.go @@ -74,8 +74,7 @@ func main() { syscalls = strings.Split(*flagSyscalls, ",") } calls := buildCallList(target, syscalls) - prios := target.CalculatePriorities(corpus) - ct := target.BuildChoiceTable(prios, calls) + ct := target.BuildChoiceTable(corpus, calls) config, execOpts, err := createIPCConfig(target, features, featuresFlags) if err != nil { -- cgit mrf-deployment