Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Unified Diff: third_party/WebKit/Source/platform/json/JSONParser.h

Issue 2517183002: Add a configurable maximum parse depth for the blink JSON parser. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/json/JSONParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/json/JSONParser.h
diff --git a/third_party/WebKit/Source/platform/json/JSONParser.h b/third_party/WebKit/Source/platform/json/JSONParser.h
index e06fef8098fbf13ba21e9758c1221a8324669211..28a3b071c284fb1da9eae0e8896e53eb5f5e597a 100644
--- a/third_party/WebKit/Source/platform/json/JSONParser.h
+++ b/third_party/WebKit/Source/platform/json/JSONParser.h
@@ -16,6 +16,9 @@ class JSONValue;
PLATFORM_EXPORT std::unique_ptr<JSONValue> parseJSON(const String& json);
+PLATFORM_EXPORT std::unique_ptr<JSONValue> parseJSON(const String& json,
+ int maxDepth);
+
} // namespace blink
#endif // JSONParser_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/json/JSONParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698