SmileParser
throws unexpected IOOBE for corrupt content
#426
Labels
2.17
fuzz
Issue found by OssFuzz
has-failing-test
Indicates that there exists a test case (under `failing/`) to reproduce the issue
smile
Milestone
In the
SmileParser::nextTextValue()
method, there is a line that uses the Integerptr
as an index to retrieve a byte from the_inputBuffer
. But it is found that with some invalid input and repeat calling to theSmileParser::nextTextValue()
method, it could cause ptr to be negative and trigger an unexpectedArrayIndexOutOfBoundsException
.The simplest fix is to add a bound check for the ptr before using it as the array index.
We found this issue by OSS-Fuzz and it is reported in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65126.
The text was updated successfully, but these errors were encountered: