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 parsing of some modern ICNS files #2

Merged
merged 4 commits into from
Apr 13, 2020

Conversation

andydotxyz
Copy link
Contributor

This improves the parser to skip whole chunks of uninteresting data so we do not stumble over false-positive matches.
Primarily this is skipping the whole table of contents so it does not accidentally find empty images.
Additionally it skips resources that we don't recognise such as unsupported image data etc.

To test see the Apple Mail icon in Catalina

TOC is variable length
Icons that are not recognised should be skipped as well
Fixes rendering of Apple Mail and other modern icons
reader.go Outdated Show resolved Hide resolved
reader.go Outdated Show resolved Hide resolved
@JackMordaunt JackMordaunt merged commit 869b441 into JackMordaunt:master Apr 13, 2020
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