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

Crash when open with special characters in the name table #5417

Open
shushilvshe opened this issue May 10, 2024 · 0 comments
Open

Crash when open with special characters in the name table #5417

shushilvshe opened this issue May 10, 2024 · 0 comments

Comments

@shushilvshe
Copy link

I built the python extension of ff(version 20230101) with ffbuild.sh, everything was ok in build process. But when I opened some fonts with special characters in name table record, it crashed. And I tested the version of 20201107, it's ok.

  • fontforge version: since 20220308
  • platform : window 10
  • python version : 3.11.9

Here is the test code, and the test font test1.zip (Note: this font is modified based on NotoSansHans-Regular.otf, just change the namerecord info which in other personal font )

from fontforge import fontforge

print(fontforge.version())
font_path = r'D:\downloads\fonts\test1.otf'
ff_font = fontforge.open(font_path)
ff_font .close()

output:

20230101

Process finished with exit code -1073741819 (0xC0000005)

Here is the name table info exported by ttx(fonttools)

    <namerecord nameID="7" platformID="1" platEncID="0" langID="0x0" unicode="True">
      ÷–π˙µÁ◊”ºº ı±Í◊ºªØ—–æø‘∫
    </namerecord>

I want to know what causes this crash. Maybe @jtanx knows more about this situation? Any help is appreciated.

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

No branches or pull requests

1 participant