Revision 57a976cd8658776595ba5d201f9b7a26cc35fad3 authored by Nicolas BACQUEY on 26 July 2022, 09:07:38 UTC, committed by Nicolas BACQUEY on 26 July 2022, 13:42:23 UTC
When parsing json schemas in `qcheck_rpc.ml` to generate random RPC inputs, we had two references that were ultimately circular: "tree_encoding" and "inode_tree". Parsing those references would cause stack overflows in `parse_input` and crash the test suite. This commit adds two special cases to `parse_input`, similar to those which are already there for references to "bignum" and "micheline.alpha.michelson_v1.expression". However, note that the two new generators are trivial: they always produce a `Null` json value. Those generators will need to be correctly implmented in a future commit.
1 parent 5c6a1cd
File | Mode | Size |
---|---|---|
.merlin | -rw-r--r-- | 63 bytes |
JSON_AST.ml | -rw-r--r-- | 651 bytes |
JSON_lexer.mll | -rw-r--r-- | 814 bytes |
JSON_parser.mly | -rw-r--r-- | 553 bytes |
Makefile | -rw-r--r-- | 1.2 KB |
README.md | -rw-r--r-- | 1.1 KB |
main.ml | -rw-r--r-- | 161.0 KB |
main.mli | -rw-r--r-- | 2.1 KB |
manifest.ml | -rw-r--r-- | 101.8 KB |
manifest.mli | -rw-r--r-- | 38.8 KB |
tezos_protocol.ml | -rw-r--r-- | 1.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...