Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop in GlyphDataTable.ReadCompositeGlyph() #785

Open
sascha-schwegelbauer opened this issue Feb 19, 2024 · 0 comments
Open

Infinite loop in GlyphDataTable.ReadCompositeGlyph() #785

sascha-schwegelbauer opened this issue Feb 19, 2024 · 0 comments

Comments

@sascha-schwegelbauer
Copy link

I have a PDF-File (unfortunately not available for public) that crashes during ContentOrderTextExtractor.GetText().
After a basic analysis, I can say that the do-while loop in GlyphDataTable.ReadCompositeGlyph() never exits.
It tries to add the same glyph (same index, same values in transform matrix) to the list of CompositeComponents again and again.
Adding a conditional break (checking for existence of a component in the list with the same index and same values in matrix) exits the loop but leads to a IndexOutOfRangeException later in GlyphDataTable.ReadFlags().
Unfortunately, I have no good idea how to fix this issue - so this is just FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant