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 bug where colon in ufo font glyph name causes crash #518

Merged
merged 4 commits into from
Jul 28, 2018

Conversation

readroberts
Copy link
Contributor

Fixes #473. If the glyph name contained any of the illegal characters, the code would endlessly add '_' to the glyph name, overrunning the name buffer.

Add test to validate crash with test file before code fix.
Fix flake8 bugs in test to validate crash with test file before code fix.
If the glyph name contained any of the illegal characters, the code would endlessly add '_' to the glyph name, overrunning the name buffer.

Also fixed bug where code that is supposed to handle a too-long name failed.

Fixed input_data/bug473.ufo glyph order names.

Added expected_output data, and changed test to test for success.
miguelsousa
miguelsousa previously approved these changes Jul 27, 2018
@miguelsousa miguelsousa merged commit fb97a5b into develop Jul 28, 2018
@miguelsousa miguelsousa deleted the fix-tx-issue473 branch July 28, 2018 04:42
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.

3 participants