[
https://issues.apache.org/jira/browse/PDFBOX-6085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032124#comment-18032124
]
Tilman Hausherr commented on PDFBOX-6085:
-----------------------------------------
my debug notes in case this bothers us in the future
==
!! look in "data" in the debugger in GlyphData.initData(), not in the fontfile
dump
input codes: 'A', 8204:
8204 becomes GID 132
'A' becomes GID 960
data offset 44 = 0x2c contours: 0x0028 = 40
position before reading contours: 54, 80 bytes to read
data len: 120
gid 960 is A
input read pos 204212 WRONG in addCompoundReferences before reading buffer, len
74
writing: write pos is 44, complete buf has len 74, contains the WRONG 0x0028
contour count
Comparison when using 'A' only:
input read pos 190498 GOOD in addCompoundReferences before reading buffer, len
74, 2 contours GOOD
> 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
> Attachments: PDFBOX-6085-demo.pdf
>
>
> 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]