You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Brian Carrier (JIRA)" <ji...@apache.org> on 2009/05/26 23:03:45 UTC
[jira] Resolved: (PDFBOX-468) index out of bounds exception
[ https://issues.apache.org/jira/browse/PDFBOX-468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Carrier resolved PDFBOX-468.
----------------------------------
Resolution: Fixed
Checked into trunk. The extra unread() is not correct though because -1 is returned when no bytes were read, therefore nothing needs to be unread().
Sending trunk/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Transmitting file data .
Committed revision 778883.
> index out of bounds exception
> -----------------------------
>
> Key: PDFBOX-468
> URL: https://issues.apache.org/jira/browse/PDFBOX-468
> Project: PDFBox
> Issue Type: Bug
> Reporter: Sean Bridges
> Fix For: 0.8.0-incubator
>
> Attachments: patch
>
>
> This is with svn revision 773978
> I get an index out of bounds exception parsing pdf files, I can't give you the file but the exception is,
> Caused by: org.apache.pdfbox.exceptions.WrappedIOException
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:228)
> at message_analyzer.extractor.PDFExtractor.getContent(PDFExtractor.java:32)
> ... 19 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.pdfbox.pdfparser.BaseParser.cmpCircularBuffer(BaseParser.java:398)
> at org.apache.pdfbox.pdfparser.BaseParser.readUntilEndStream(BaseParser.java:355)
> at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:322)
> at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:490)
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:169)
> ... 20 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.