aboutsummaryrefslogtreecommitdiffstats
path: root/prog/test/fuzz_test.go
Commit message (Collapse)AuthorAgeFilesLines
* prog: auto-set proper conditional fields in Deserialize()Aleksandr Nogikh2024-03-131-0/+3
| | | | | | | | | 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.
* Revert "prog: auto-set proper conditional fields in Deserialize()"Aleksandr Nogikh2024-03-081-3/+0
| | | | This reverts commit 8e75c913b6f9b09cab2ad31fd7d66ea0d1703de8.
* prog: auto-set proper conditional fields in Deserialize()Aleksandr Nogikh2024-03-081-0/+3
| | | | | | | | | 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: fix out-of-bounds access in any blob mutationDmitry Vyukov2022-06-201-0/+7
| | | | | | | | | | | | | | | | | If we grow any blob during mutation, we allocate a new address for it (so that it does not overlap with other data). To do this we call analyze after the mutation. However, after mutation the blob can grow out of bounds of the data area and analyze will cause out-of-bounds access during marking of existing allocations. Fix this by calling analyze before we mutate the blob. Also while we are here use the proper call for analyze. Currently we always analyze only the first call, which is wrong (probably a latent TODO from initial implementation). Fixes #3206
* prog: fix out-of-bounds accessDmitry Vyukov2019-07-301-2/+4
| | | | | ParseLog can access data out-of-bounds. Fix that and fix regression fuzz tests to catch this.
* all: fix some static analysis warningsDmitry Vyukov2019-04-231-1/+1
| | | | | | Fix warnings produced by golangci-lint. Update #977
* prog/test: rename prog/fuzz to prog/testDmitry Vyukov2019-04-011-0/+30
gometalinter complained about fuzz.FuzzFoo names, but go-fuzz now requires all fuzz functions to start with Fuzz. So move the package to prog/test.