aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2023-05-05 15:52:44 +0000
committerdan <Dan Kennedy>2023-05-05 15:52:44 +0000
commited96436f23a0b42e2a83e66272ce93dc1f18d4d1 (patch)
treeed4de834109c66095bc4fdee07af451c388899ac /src/json.c
parent3e49355e17a376eb16e260055923433fd6579fe1 (diff)
downloadsqlite-ed96436f23a0b42e2a83e66272ce93dc1f18d4d1.tar.gz
sqlite-ed96436f23a0b42e2a83e66272ce93dc1f18d4d1.zip
Reduce the maximum depth of nesting in json objects to 1000.
FossilOrigin-Name: c7697a0d45bfab20ec09f17ad65e375ddb43af6762278481c13a65c9a784978e
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index ada8a91c5..8e6ba48b4 100644
--- a/src/json.c
+++ b/src/json.c
@@ -147,7 +147,7 @@ struct JsonParse {
** descent parser. A depth of 2000 is far deeper than any sane JSON
** should go.
*/
-#define JSON_MAX_DEPTH 2000
+#define JSON_MAX_DEPTH 1000
/**************************************************************************
** Utility routines for dealing with JsonString objects