[
https://issues.apache.org/jira/browse/PDFBOX-6085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032114#comment-18032114
]
Tilman Hausherr commented on PDFBOX-6085:
-----------------------------------------
I have now investigated the other bug and I think my first bugfix was wrong.
The real cause is the hard-to-understand usage of {{skip()}} which brings a
wrong offset if an invisible glyph is hit. The reason that this didn't come up
earlier may be that the zero width glyph was the last one. In the current case,
it is in the middle so we end up catching wrong data, which may also explain
your other bug.
> 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
> Assignee: Tilman Hausherr
> 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]