aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-mutate
diff options
context:
space:
mode:
authorGabe Kirkpatrick <gkirkpatrick@google.com>2023-07-19 15:25:49 +0000
committerAleksandr Nogikh <nogikh@google.com>2023-07-19 16:50:05 +0000
commit4547cdf9e497f833628b7b0660809b3247a7411e (patch)
tree0a70b7ed823a3fea27698cf3ec4946e1d37453d2 /tools/syz-mutate
parent8ec641e49b4bf866fa2b80f6e15dbb63d5de6cbe (diff)
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.
Diffstat (limited to 'tools/syz-mutate')
-rw-r--r--tools/syz-mutate/mutate.go6
1 files changed, 3 insertions, 3 deletions
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 {