Skip to content

Commit

Permalink
fix: decrease the nested object limit to 100 instead of 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
jgiovaresco committed Jul 26, 2023
1 parent e3b124e commit f0bcd92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ You can configure the policy with the following options:

=== Nested objects

To limit the processing time in case of nested object, a default max depth of nested object has been defined to 1000. This default value can be overriden using the environment variable `gravitee_policy_jsonxml_maxdepth`.
To limit the processing time in case of nested object, a default max depth of nested object has been defined to 100. This default value can be overriden using the environment variable `gravitee_policy_jsonxml_maxdepth`.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ of this software and associated documentation files (the "Software"), to deal
*/
public class JSONTokener {

public static final int DEFAULT_MAX_DEPTH = 1000;
public static final int DEFAULT_MAX_DEPTH = 100;
private long character;
private boolean eof;
private long index;
Expand Down

0 comments on commit f0bcd92

Please sign in to comment.