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

[makeotfexe] Fix infinite loop #728

Merged
merged 1 commit into from
Feb 6, 2019
Merged

[makeotfexe] Fix infinite loop #728

merged 1 commit into from
Feb 6, 2019

Conversation

khaledhosny
Copy link
Collaborator

On my system, makeotfexe_test.py enters into, what appears to be, an infinite loop in test_duplicate_single_sub test.

This seems to be caused by nFeatures variable in fillFeatureList() getting a random huge value when there are no features in the file, as spanLimit can be 0 and the code ends up trying to access t->subtable.array[-1].index.feature.

On my system, makeotfexe_test.py enters into, what appears to be, an
infinite loop in test_duplicate_single_sub test.

This seems to be caused by nFeatures variable in fillFeatureList()
getting a random huge value when there are no features in the file, as
spanLimit can be 0 and the code ends up trying to access
t->subtable.array[-1].index.feature.
@miguelsousa miguelsousa merged commit 364975f into adobe-type-tools:develop Feb 6, 2019
@khaledhosny khaledhosny deleted the makeotf-inifinite-loop branch February 6, 2019 21:01
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