[
https://issues.apache.org/jira/browse/PDFBOX-6078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18023266#comment-18023266
]
ASF subversion and git services commented on PDFBOX-6078:
---------------------------------------------------------
Commit 1928778 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1928778 ]
PDFBOX-6078: avoid ArrayIndexOutOfBoundsException
> ArrayIndexOutOfBoundsException in GlyphSubstitutionTable.read()
> ---------------------------------------------------------------
>
> Key: PDFBOX-6078
> URL: https://issues.apache.org/jira/browse/PDFBOX-6078
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Reporter: Tilman Hausherr
> Priority: Major
> Attachments: PDFBOX-6078-0332387-p13.pdf
>
>
> java.lang.ArrayIndexOutOfBoundsException: Index 257 out of bounds for length
> 257
>
> org.apache.fontbox.ttf.GlyphSubstitutionTable.read(GlyphSubstitutionTable.java:133)
> org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:411)
> org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:180)
> org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:159)
> org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:68)
>
> org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:123)
> There are missing checks. The exception happens only in the trunk because it
> is in a segment that is only for debugging (from PDFBOX-5729). However there
> is another place both in the trunk and 3.0 that is also missing the check.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]