[
https://issues.apache.org/jira/browse/PDFBOX-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13890824#comment-13890824
]
Robert Meyer edited comment on PDFBOX-1882 at 2/5/14 9:31 AM:
--------------------------------------------------------------
I have an OTF font (Adobe Heiti Standard Regular) which unfortunately I can't
upload due to copyright issues, but when parsed will throw a negative array
size exception. This is because the method readString(int index) in
CFFParser.java:574 makes an incorrect check as there are only 390 strings and
not 391 as is given in the method. This can be remedied by changing the <= to a
<. Without this fix it is a bit of a show stopper so if someone could take a
look and confirm that would be great.
I can maybe send the font to someone via e-mail if that would help.
was (Author: rmeyer):
I have an OTF font (Adobe Heiti Standard Regular) which unfortunately I can't
upload due to copyright issues, but when parsed will throw a negative array
size exception. This is because the method readString(int index) in
CFFParser.java:574 makes an incorrect check as there are only 390 strings and
not 391 as is given in the method. This can be remedied by changing the <= to a
<. Without this fix it is a bit of a shower stopper so if someone could take a
look and confirm that would be great.
I can maybe send the font to someone via e-mail if that would help.
> Negative array size exception when reading a string from a OTF font
> -------------------------------------------------------------------
>
> Key: PDFBOX-1882
> URL: https://issues.apache.org/jira/browse/PDFBOX-1882
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.8.4
> Reporter: Robert Meyer
> Fix For: 1.8.5
>
> Attachments: patch.diff
>
>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)