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/05/11 18:40:13 UTC

[jira] [Commented] (PDFBOX-3348) NPE in Type1Parser.parseBinary

    [ https://issues.apache.org/jira/browse/PDFBOX-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15280600#comment-15280600 ] 

ASF subversion and git services commented on PDFBOX-3348:
---------------------------------------------------------

Commit 1743407 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1743407 ]

PDFBOX-3348: avoid NPE

> NPE in Type1Parser.parseBinary
> ------------------------------
>
>                 Key: PDFBOX-3348
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3348
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.2, 2.1.0
>
>         Attachments: PDFBOX-3348-058289-p1.pdf
>
>
> NPE happens in this code if the content is crap, because peekToken() can be null:
> {code}
>         // find /Private dict
>         while (!lexer.peekToken().getText().equals("Private"))
>         {
>             lexer.nextToken();
>         }
> {code}



--
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