Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
Description
Using my AFL-based fuzzer for Java. I found that a NegativeArraySizeException may be throw when attempting to read an invalid JPEG image.
public void traverseJFIF(final ByteSource byteSource, final Visitor visitor) throws ImageReadException, IOException { try (InputStream is = byteSource.getInputStream()) { readAndVerifyBytes(is, JpegConstants.SOI, "Not a Valid JPEG File: doesn't begin with 0xffd8"); .....
I think you should add the handle NegativeArraySizeException exception