You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Constantine Dokolas (Jira)" <ji...@apache.org> on 2025/10/21 09:50:00 UTC

[jira] [Commented] (PDFBOX-6085) TTFSubsetter.buildGlyfTable() modifies glyphIds while iterating over its entries possibly causing ConcurrentModificationException to be thrown

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

Constantine Dokolas commented on PDFBOX-6085:
---------------------------------------------

Note: I assume that {{addCompoundReferences()}} would add all compound glyphs. Why should {{buildGlyfTable()}} need to also handle such cases?

> TTFSubsetter.buildGlyfTable() modifies glyphIds while iterating over its entries possibly causing ConcurrentModificationException to be thrown
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-6085
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6085
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.35, 3.0.6 PDFBox
>            Reporter: Constantine Dokolas
>            Priority: Major
>
> Modifying a {{TreeSet}} while iterating over its members is prohibited as it may throw a {{ConcurrentModificationException}} if the set is actually modified.
> This can be observed during subsetting some fonts, e.g. Devanagari (NotoSansDevanagari).



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