[
https://issues.apache.org/jira/browse/PDFBOX-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130060#comment-17130060
]
Tilman Hausherr edited comment on PDFBOX-4866 at 6/10/20, 4:36 AM:
-------------------------------------------------------------------
Definitively malformed/corrupted PDF file by the customer. However
IndexOutOfBoundsException is a no-no. Would you be willing to help and test a
snapshot? If so then I would make changes to see what exactly goes wrong, so
that the software throws an IOException instead.
was (Author: tilman):
It's likely a client issue. However IndexOutOfBoundsException is a no-no. Would
you be willing to help and test a snapshot? If so then I would make changes to
see what exactly goes wrong, so that the software throws an IOException instead.
> java.lang.IndexOutOfBoundsException
> -----------------------------------
>
> Key: PDFBOX-4866
> URL: https://issues.apache.org/jira/browse/PDFBOX-4866
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing, Rendering
> Affects Versions: 2.0.19
> Reporter: Dushyanth Balasubramanian
> Priority: Major
>
> java.lang.IndexOutOfBoundsExceptionjava.lang.IndexOutOfBoundsException at
> java.io.ByteArrayInputStream.read(ByteArrayInputStream.java:180) at
> org.apache.fontbox.pfb.PfbParser.parsePfb(PfbParser.java:148) at
> org.apache.fontbox.pfb.PfbParser.<init>(PfbParser.java:112) at
> org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:69) at
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:251) at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146) at
> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:270) at
> org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321) at
> org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243) at
> org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:229)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]