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] increase uvName string length limit #1311

Merged
merged 4 commits into from
Feb 23, 2021

Conversation

josh-hadley
Copy link
Collaborator

Description

Increase string length limit for parsing the 3rd column of a GOADB file (aliases/Unicode Value mappings).

Closes #1310

Checklist:

  • I have followed the Contribution Guidelines
  • I have added test code and data to prove that my code functions correctly
  • I have verified that new and existing tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

- add `MAX_UV_CHAR_NAME_LEN` of 2047
- re-work `gnameScan` to use `MAX_UV_CHAR_NAME_LEN` when `nameType` is uvName, else `MAX_CHAR_NAME_LEN` (previous behavior)
with open(stderr_path, 'rb') as f:
output = f.read()

assert ((b'(record skipped)(gnameError)') in output) is expected
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor suggestion -- there's a superfluous set of parentheses in this line, and it could be simplified to:

    assert (b'(record skipped)(gnameError)' in output) is expected

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

((indeed!))
fixed in 574ed05

remove superfluous parens
Copy link
Collaborator

@kaydeearts kaydeearts left a comment

Choose a reason for hiding this comment

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

👍

@josh-hadley josh-hadley merged commit 8e204f2 into develop Feb 23, 2021
@josh-hadley josh-hadley deleted the jh-update-makeotfexe-uvname-limit branch February 23, 2021 16:31
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.

Extend string length limitation for 3rd column of GOADB
3 participants