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

add test for invalid ancillary after IDAT #44936

Merged

Conversation

svgeesus
Copy link
Contributor

@svgeesus svgeesus commented Mar 5, 2024

Similar to the other invalid ancillary test but here, the invalid chunk is after IDAT rather than before it.

The test PNG was created from a copy of the valid reference PNG; I inserted a tRNS chunk in TweakPNG, moved it after IDAT (accepting the warning) and saved. Then in a hex editor I changed "N" (0x4E) to 0x0E, saved, ran it through PNG file chunk inspector to get the new CRC value, and typed that in in a hex editor.

Chunk summary: IHDR, gAMA, PLTE, IDAT, tR␎S, IEND

@svgeesus
Copy link
Contributor Author

svgeesus commented Mar 5, 2024

@svgeesus
Copy link
Contributor Author

svgeesus commented Mar 8, 2024

@ProgramMax @annevk any chance of a quick review?

Copy link
Contributor

@ProgramMax ProgramMax left a comment

Choose a reason for hiding this comment

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

LGTM
Sorry, missed the original ping.

@svgeesus svgeesus merged commit 04486cf into web-platform-tests:master Mar 9, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants