Port Clamp JSON object depth to PHP limit from bitcoin-core #22

This commit is contained in:
DenioD
2019-12-23 16:55:16 +01:00
parent ba39f552c0
commit c21819beee
5 changed files with 18 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ static const char *filenames[] = {
"fail40.json", // invalid unicode: broken UTF-8
"fail41.json", // invalid unicode: unfinished UTF-8
"fail42.json", // valid json with garbage following a nul byte
"fail45.json", // nested beyond max depth
"fail3.json",
"fail4.json", // extra comma
"fail5.json",
@@ -124,6 +125,7 @@ static const char *filenames[] = {
"pass1.json",
"pass2.json",
"pass3.json",
"pass4.json",
"round1.json", // round-trip test
"round2.json", // unicode
"round3.json", // bare string