[ 
https://issues.apache.org/jira/browse/PDFBOX-6078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-6078:
------------------------------------
    Description: 
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. However there si another place that is 
in the trunk and 3.0 that is also missing the check.

  was:
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.


> 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. However there si another place 
> that is 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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to