From afb4ef03152e930503768785ac23933a8a35e52c Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 13 Mar 2024 19:06:12 +0100 Subject: prog: enable MutateWithHints() abortion The call may potentially generate a very large number of possible mutations. Add a way to abort the process. --- tools/syz-mutate/mutate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/syz-mutate') diff --git a/tools/syz-mutate/mutate.go b/tools/syz-mutate/mutate.go index 2394ed619..101ce0739 100644 --- a/tools/syz-mutate/mutate.go +++ b/tools/syz-mutate/mutate.go @@ -89,8 +89,9 @@ func main() { if *flagHintCall != -1 { comps := make(prog.CompMap) comps.AddComp(*flagHintSrc, *flagHintCmp) - p.MutateWithHints(*flagHintCall, comps, func(p *prog.Prog) { + p.MutateWithHints(*flagHintCall, comps, func(p *prog.Prog) bool { fmt.Printf("%s\n\n", p.Serialize()) + return true }) return } else { -- cgit mrf-deployment