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

Unified Diff: components/safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java

Issue 2570113002: Increase the depth limit of JSONParser and IPC serialization from 100 to 200. (Closed)
Patch Set: added comment Created 3 years, 11 months 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 | « base/json/json_parser_unittest.cc ('k') | components/safe_json/json_sanitizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java
diff --git a/components/safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java b/components/safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java
index 9ab07a7c762d0a40aeb43777525153671d78a68b..797e3407f3525ab65cdc8bd60e41ad313198fdc9 100644
--- a/components/safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java
+++ b/components/safe_json/android/java/src/org/chromium/components/safejson/JsonSanitizer.java
@@ -32,7 +32,7 @@ public class JsonSanitizer {
* The maximum nesting depth to which the native JSON parser restricts input in order to avoid
* stack overflows.
*/
- private static final int MAX_NESTING_DEPTH = 100;
+ private static final int MAX_NESTING_DEPTH = 200;
/**
* Validates input JSON string and returns the sanitized version of the string that's safe to
« no previous file with comments | « base/json/json_parser_unittest.cc ('k') | components/safe_json/json_sanitizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698