Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Fuzzing PDF loading with JQF triggered an ArrayIndexOutOfBoundsException.
java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.parse(PDFXrefStreamParser.java:150) at org.apache.pdfbox.pdfparser.COSParser.parseXrefStream(COSParser.java:2767) at org.apache.pdfbox.pdfparser.COSParser.parseXrefObjStream(COSParser.java:442) at org.apache.pdfbox.pdfparser.COSParser.parseXref(COSParser.java:392) at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:254) at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:171) at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:220) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1160) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1057) ...
The Code used for fuzzing is
PDDocument.load(inputStream)