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

Match against all 8 PNG file signature bytes #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sudhir-b
Copy link

@sudhir-b sudhir-b commented Sep 24, 2024

Update the PNG matcher to match all 8 bytes of the PNG signature as in:
https://www.w3.org/TR/png/#5PNG-file-signature

I'm not sure that this makes any functional difference but spotted a discrepancy and thought I'd open this PR for completeness.

As an aside, it looks like the APNG matcher matches against an identical bytearray to begin with - is there a reason for this difference in the two matchers?

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.

1 participant