Commit Graph

5 Commits

Author SHA1 Message Date
William Banfield
7889a64dd7 Merge branch 'master' into wb/fuzz-testdata-cases 2021-07-26 12:31:17 -04:00
William Banfield
ca5ddc83e3 test/fuzz: add default testdata for fuzz tests 2021-07-26 12:22:14 -04:00
William Banfield
c5dc3b267f test/fuzz: add test to reproduce found fuzz errors (#6757)
This change does two things:
1. It fixes the json fuzzer to account for receiving array results. Arrays are returned by the rpc server when the input data is an array.
2. Adds a `fuzz_test.go` file and corresponding `testdata` directory containing the failing test case.

This seems like a reasonable way to add and track previous crash issues in our fuzz test cases. The upcoming stdlib go fuzz tool does effectively this automatically.
2021-07-26 14:58:51 +00:00
William Banfield
9212ad7c7f fix for single element json array 2021-07-23 18:05:55 -04:00
William Banfield
cbdf0072fc test/fuzz: add test to reproduce found fuzz errors 2021-07-23 12:24:33 -04:00