You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/09/16 16:09:21 UTC
[jira] [Commented] (PDFBOX-3500) Error expected floating point
number actual='0.-262'
[ https://issues.apache.org/jira/browse/PDFBOX-3500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15496677#comment-15496677 ]
ASF subversion and git services commented on PDFBOX-3500:
---------------------------------------------------------
Commit 1761054 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1761054 ]
PDFBOX-3500: catch another bad floating point number, as suggested by Simon Gaeremynck
> Error expected floating point number actual='0.-262'
> ----------------------------------------------------
>
> Key: PDFBOX-3500
> URL: https://issues.apache.org/jira/browse/PDFBOX-3500
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.12, 1.8.13, 2.0.3, 2.1.0
> Reporter: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
> Attachments: PDFBOX-3500.pdf
>
>
> As reported by Simon Gaeremynck in the user mailing list with attached file.
> {code}
> [3] Stack trace:
> [error] at org.apache.pdfbox.cos.COSFloat.<init>(COSFloat.java:81)
> [error] at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:115)
> [error] at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:939)
> {code}
> His proposed change in COSFloat
> {code}
> - if (aFloat.matches("^0\\.0+\\-\\d+"))
> + if (aFloat.matches("^0\\.0*\\-\\d+"))
> {code}
> I'll commit it after running regression tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org