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

Some TTF files can't parsed #351

Closed
Mingun opened this issue Oct 20, 2020 · 1 comment
Closed

Some TTF files can't parsed #351

Mingun opened this issue Oct 20, 2020 · 1 comment

Comments

@Mingun
Copy link
Contributor

Mingun commented Oct 20, 2020

Parsing of NDCAlpha1.zip with ttf.ksy failed in https://ide.kaitai.io/devel/ with error:

Parse error: undefined
Call stack: undefined EOFError: requested 1 bytes, but only 0 bytes available

The error is gone if comment usage of post type:

"'maxp'": maxp
"'post'": post
"'name'": name

armijnhemel added a commit to armijnhemel/kaitai_struct_formats that referenced this issue Feb 5, 2022
@armijnhemel
Copy link
Collaborator

This is because the current parser tries to read beyond the end of stream in the post table. #579 fixes this.

ZetaTwo pushed a commit to ZetaTwo/kaitai_struct_formats that referenced this issue May 17, 2022
* ttf: support version 0.5 of "maxp" table (used by fonts with CFF
outlines)

* ttf: do not try to read data outside of the stream of "post" table,
fixes kaitai-io#351

* ttf: version10 -> is_version10
ZetaTwo pushed a commit to ZetaTwo/kaitai_struct_formats that referenced this issue May 17, 2022
* ttf: support version 0.5 of "maxp" table (used by fonts with CFF
outlines)

* ttf: do not try to read data outside of the stream of "post" table,
fixes kaitai-io#351

* ttf: version10 -> is_version10
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

2 participants