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

adding safeguards so input of oxffff glyph id isn't problematic #256

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

galkahana
Copy link
Owner

see issue #255 .

adding checks that glyph ids are not illegal. glyph id can come from user input or some error, so might cause unexpected issues.
in descendent font checking against max possible value which is 0xffff -1, later when there's more information about the font checking against max glyph id which is glyph count - 1. glyph count in turn is unsigned short, and so this check includes the oxffff -1 range.

@galkahana galkahana mentioned this pull request Jun 8, 2024
@galkahana galkahana merged commit 339db4f into master Jun 11, 2024
3 checks passed
@galkahana galkahana deleted the galk.ttf_max_glyf_safeguards branch June 11, 2024 03:12
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

Successfully merging this pull request may close these issues.

1 participant