From 4547cdf9e497f833628b7b0660809b3247a7411e Mon Sep 17 00:00:00 2001 From: Gabe Kirkpatrick Date: Wed, 19 Jul 2023 15:25:49 +0000 Subject: tools/syz-mutate: default mode to non-strict before checking flag Default mode variable to NonStrict before checking the provided flag value. This is more consistent with similar cases in other tools. --- tools/syz-mutate/mutate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/syz-mutate') diff --git a/tools/syz-mutate/mutate.go b/tools/syz-mutate/mutate.go index 86b574f23..2394ed619 100644 --- a/tools/syz-mutate/mutate.go +++ b/tools/syz-mutate/mutate.go @@ -77,9 +77,9 @@ func main() { fmt.Fprintf(os.Stderr, "failed to read prog file: %v\n", err) os.Exit(1) } - mode := prog.Strict - if !*flagStrict { - mode = prog.NonStrict + mode := prog.NonStrict + if *flagStrict { + mode = prog.Strict } p, err = target.Deserialize(data, mode) if err != nil { -- cgit mrf-deployment