You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
indexOf
function, 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
pos
to be checked less thanlen
. Instead, thei
should 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: