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

Fix treating null offsets as error in GSUB #152

Merged
merged 3 commits into from
Jun 16, 2024

Conversation

LaurenzV
Copy link
Contributor

So I was facing problems with a new font added in harfbuzz, and turns out that the reason was that a specific GSUB lookup failed to parse properly. After looking at the spec, I noticed the following:
image

Offsets cann be NULL, which wasn't checked for in our implementation. This is the least invasive approach I could think of (requires no changes in rustybuzz), and the test case passes now as well, so I hope it's okay.

@RazrFalcon
Copy link
Collaborator

Looks good. I guess I've missed this edge case.

@RazrFalcon RazrFalcon merged commit 46a0b9e into harfbuzz:master Jun 16, 2024
2 checks passed
@LaurenzV LaurenzV deleted the gsub-fix branch June 18, 2024 13:41
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.

2 participants