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 2023/06/19 13:43:00 UTC
[jira] [Commented] (PDFBOX-5624) Infinte loop when parsing Type1 font
[ https://issues.apache.org/jira/browse/PDFBOX-5624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17734196#comment-17734196 ]
ASF subversion and git services commented on PDFBOX-5624:
---------------------------------------------------------
Commit 1910491 from Timo Boehme in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1910491 ]
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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org