aboutsummaryrefslogtreecommitdiffstats
path: root/prog/test
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-03-06 16:09:41 +0100
committerAleksandr Nogikh <nogikh@google.com>2024-03-13 10:31:21 +0000
commit43c7f3875016259bbb877ac58b831af47c92f06d (patch)
tree9a43856d22af805edc98c917db099a38fb68fdda /prog/test
parent20d042025bd8e1f91bb1fec20ae1509a08bfa4ef (diff)
prog: auto-set proper conditional fields in Deserialize()
Treat all default union arguments as transient and reevaluate them after the call was fully parsed. Before conditional field patching, we do need to have performed arg validation, which also reevaluates conditions. To break the cycle, make validation configurable.
Diffstat (limited to 'prog/test')
-rw-r--r--prog/test/fuzz_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/prog/test/fuzz_test.go b/prog/test/fuzz_test.go
index f01905ea3..2d063c469 100644
--- a/prog/test/fuzz_test.go
+++ b/prog/test/fuzz_test.go
@@ -30,6 +30,9 @@ test$res2()
test$res2()
test$res2()
`,
+ `r=test$res0()
+test$recur2(&(293324893027559)={r})
+`,
} {
t.Logf("test #%v: %q", i, data)
inp := []byte(data)[:len(data):len(data)]