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

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

Commit 1910492 from Timo Boehme in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1910492 ]

PDFBOX-5624: prevent 2 infinite loops by checking if we run out of token

> Infinte loop when parsing Type1 font
> ------------------------------------
>
>                 Key: PDFBOX-5624
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5624
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.28, 3.0.0 PDFBox
>            Reporter: Timo Boehme
>            Assignee: Timo Boehme
>            Priority: Major
>
> At 2 places the Type1Parser has a loop with a negated condition on the next 
> token to be read. The loops simply advances to the next token without 
> checking the token to be null, which may happen if the font is 
> corrupted/shortened. If this occurs the parser is stuck in the loops. This 
> happens to me for one of the loops with a file which however cannot be 
> shared. The 2nd loop was found by scanning the code for similar problems.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to