summaryrefslogtreecommitdiffstats
path: root/library/cpp/json/json_reader.cpp
diff options
context:
space:
mode:
authorionagamed <[email protected]>2024-07-02 19:24:54 +0300
committerionagamed <[email protected]>2024-07-02 19:35:24 +0300
commitfe4668a34a034108c74b64e467489c0b50660c5f (patch)
tree58965d3787aace6e3fdfc6a5415e5d6587a60076 /library/cpp/json/json_reader.cpp
parent1e0a4968300412641cea8500d75bbaa0e34c062f (diff)
library: don't ignore map keys when checking json maxDepth
e5feb0553ad2842db9974979d9808105e6c5ba34
Diffstat (limited to 'library/cpp/json/json_reader.cpp')
-rw-r--r--library/cpp/json/json_reader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/json/json_reader.cpp b/library/cpp/json/json_reader.cpp
index 9080e6dbcae..0d048dfcd1e 100644
--- a/library/cpp/json/json_reader.cpp
+++ b/library/cpp/json/json_reader.cpp
@@ -290,6 +290,9 @@ namespace NJson {
value.SetType(JSON_UNDEFINED);
}
S.emplace(&value);
+ if (!IsWithinStackBounds()) {
+ return false;
+ }
return true;
}