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

Tilman Hausherr edited comment on PDFBOX-6085 at 10/21/25 8:00 PM:
-------------------------------------------------------------------

Could you create a minimal example, i.e. with specific characters that trigger 
the problem with that font? I agree with you but I'm surprised that this hasn't 
occurred before, this code has been there since its contribution in 2012. I 
looked at the test coverage and the problematic {{glyphIds.add()}} is used. 

What jdk are you using?

I can't comment on your question at this time, I would have to understand the 
code first.


was (Author: tilman):
Could you create a minimal example, i.e. with specific characters that trigger 
the problem with that font? I agree with you but I'm surprised that this hasn't 
occurred before, this code has been there since its contribution in 2012. I 
looked at the test coverage and the problematic {{glyphIds.add()}} is used. 
I can't comment on your question at this time, I would have to understand the 
code first.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to