Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.12
-
None
Description
Fuzzing PDF loading with JQF triggered an ArrayIndexOutOfBoundsException.
java.lang.ArrayIndexOutOfBoundsException: 4 at org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:2035) at org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:2213) at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:279) 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)