[jira] [Commented] (PDFBOX-4361) ArrayIndexOutOfBoundsException in COSParser

2018-10-26 Thread Robin Schimpf (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16665362#comment-16665362
 ] 

Robin Schimpf commented on PDFBOX-4361:
---

Thanks for the fix!

> ArrayIndexOutOfBoundsException in COSParser
> ---
>
> Key: PDFBOX-4361
> URL: https://issues.apache.org/jira/browse/PDFBOX-4361
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing
>Affects Versions: 2.0.12
>Reporter: Robin Schimpf
>Assignee: Tilman Hausherr
>Priority: Minor
> Fix For: 2.0.13, 3.0.0 PDFBox
>
> Attachments: ArrayIndexOutOfBoundsException 
> COSParser#bfSearchForObjStreams
>
>
> Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered 
> an ArrayIndexOutOfBoundsException.
> {code:java}
> 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)
> ...
> {code}
> The Code used for fuzzing is
> {code:java}
> PDDocument.load(inputStream)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4361) ArrayIndexOutOfBoundsException in COSParser

2018-10-25 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16664060#comment-16664060
 ] 

ASF subversion and git services commented on PDFBOX-4361:
-

Commit 1844851 from til...@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1844851 ]

PDFBOX-4361: avoid ArrayIndexOutOfBoundsException

> ArrayIndexOutOfBoundsException in COSParser
> ---
>
> Key: PDFBOX-4361
> URL: https://issues.apache.org/jira/browse/PDFBOX-4361
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing
>Affects Versions: 2.0.12
>Reporter: Robin Schimpf
>Priority: Minor
> Fix For: 2.0.13, 3.0.0 PDFBox
>
> Attachments: ArrayIndexOutOfBoundsException 
> COSParser#bfSearchForObjStreams
>
>
> Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered 
> an ArrayIndexOutOfBoundsException.
> {code:java}
> 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)
> ...
> {code}
> The Code used for fuzzing is
> {code:java}
> PDDocument.load(inputStream)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4361) ArrayIndexOutOfBoundsException in COSParser

2018-10-25 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/PDFBOX-4361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16664059#comment-16664059
 ] 

ASF subversion and git services commented on PDFBOX-4361:
-

Commit 1844850 from til...@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1844850 ]

PDFBOX-4361: avoid ArrayIndexOutOfBoundsException

> ArrayIndexOutOfBoundsException in COSParser
> ---
>
> Key: PDFBOX-4361
> URL: https://issues.apache.org/jira/browse/PDFBOX-4361
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing
>Affects Versions: 2.0.12
>Reporter: Robin Schimpf
>Priority: Minor
> Fix For: 2.0.13, 3.0.0 PDFBox
>
> Attachments: ArrayIndexOutOfBoundsException 
> COSParser#bfSearchForObjStreams
>
>
> Fuzzing PDF loading with [JQF|https://github.com/rohanpadhye/jqf] triggered 
> an ArrayIndexOutOfBoundsException.
> {code:java}
> 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)
> ...
> {code}
> The Code used for fuzzing is
> {code:java}
> PDDocument.load(inputStream)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org