From 8e75c913b6f9b09cab2ad31fd7d66ea0d1703de8 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 6 Mar 2024 16:09:41 +0100 Subject: 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. --- prog/test/fuzz_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prog/test') 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 @@ -29,6 +29,9 @@ test$res2() test$res2() test$res2() test$res2() +`, + `r=test$res0() +test$recur2(&(293324893027559)={r}) `, } { t.Logf("test #%v: %q", i, data) -- cgit mrf-deployment