The parser fails to throw the ParseException when the parser read the unclosed ', the following example input could cause the ArrayIndexOutOfBoundsException:
'c
In detail, when the parser tries to find closed single quotation mark using indexOf function, the iteration variable is not sets corretly in line 79:
The parser fails to throw the ParseException when the parser read the unclosed
', the following example input could cause the ArrayIndexOutOfBoundsException:In detail, when the parser tries to find closed single quotation mark using
indexOffunction, the iteration variable is not sets corretly in line 79:json-smart-v1/json-smart/src/main/java/net/minidev/json/parser/JSONParserByteArray.java
Lines 78 to 83 in 4e6596f
It shouldn't be the
posto be checked less thanlen. Instead, theishould be checked. The correct way in line 79 is:Any input with unclosed single quotation mark could trigger this. Like the input of
'c, cause the ArrayIndexOutOfBoundsExceptionThe text was updated successfully, but these errors were encountered: