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

Add error for fonts surpassing 65000 SID Limit #1347

Merged
merged 4 commits into from
May 6, 2021

Conversation

kaydeearts
Copy link
Collaborator

This should fix #1338
In the bug above, the user ran into segfault error after using rotateFont. This was actually due to the source font having too many glyphs for it to be a name-keyed font (should be CID-keyed font instead).
We added an error for this to inform the user, stop the program & avoid segfault.

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2021

This pull request introduces 2 alerts when merging 1212a02 into 3a83d6e - view on LGTM.com

new alerts:

  • 2 for Wrong type of arguments to formatting function

Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question on the actual limit value, see comments. Also: seems like we should probably document this limit and the behavior somewhere (either in tools built-in help or elsewhere in AFDKO documentation)

c/public/lib/source/t1read/t1read.c Show resolved Hide resolved
@kaydeearts kaydeearts changed the title Add error for fonts surpassing 65534 Glyph Limit Add error for fonts surpassing 65000 SID Limit May 6, 2021
Copy link
Collaborator

@josh-hadley josh-hadley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kaydeearts kaydeearts merged commit 5b30530 into develop May 6, 2021
@kaydeearts kaydeearts deleted the kd-rotateFont_segfault_fix branch May 6, 2021 20: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.

[rotateFont] Segmentation Fault happens when using rotateFont or mergeFont to rename glyph names.
3 participants