We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e3b13 commit 91bef05Copy full SHA for 91bef05
1 file changed
src/main/org/hjson/JsonParser.java
@@ -84,9 +84,6 @@ private JsonValue readValue() throws IOException{
84
85
86
private JsonValue readValue(int depth) throws IOException {
87
- if(current==123) {
88
- ++depth;
89
- }
90
/* The following has been refrenced for the resolution of the vulnerability:
91
https://github.com/FasterXML/jackson-databind/commit/fcfc4998ec23f0b1f7f8a9521c2b317b6c25892b
92
*/
@@ -103,9 +100,9 @@ private JsonValue readValue(int depth) throws IOException {
103
100
case '"':
104
101
return readString();
105
102
case '[':
106
- return readArray(depth);
+ return readArray(depth + 1);
107
case '{':
108
- return readObject(depth);
+ return readObject(depth + 1);
109
case '-':
110
case '0':
111
case '1':
0 commit comments