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

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

Commit 1814354 from [~lehmi] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1814354 ]

PDFBOX-3956: optimized endobj detection and brute force search for objects

> Truncated pdf can't be repaired anymore
> ---------------------------------------
>
>                 Key: PDFBOX-3956
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3956
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>              Labels: regression
>         Attachments: N4CWPKUJDQIPQ6YLYKPLOZJBTSYGQEYR.pdf
>
>
> [[email protected]]'s last test run reveals another minor regression. The 
> truncated file attached to the ticket can't be read anymore. The issue is 
> related to the changes made in PDFBOX-3936.
> The following exception is thrown
> {code}
> java.io.IOException: Error reading stream, expected='endstream' actual='' at 
> offset 271297
>     org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:1078)
>     org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:821)
>     
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:782)
>     
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:713)
>     org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:673)
>     org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:205)
>     org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1012)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:950)
>     
> org.apache.pdfbox.debugger.PDFDebugger.parseDocument(PDFDebugger.java:1312)
>     org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1233)
>     org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1218)
>     org.apache.pdfbox.debugger.PDFDebugger.main(PDFDebugger.java:1209)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to