Skip to content

Conversation

@svgeesus
Copy link
Contributor

The PNG spec requires that errors in unknown ancillary chunks are not fatal errors and are recovered. This test exercises this, for non-animated PNG.

The test image has a malformed chunk (actually an sBIT chunk with the second byte changed to ASCII control code SOH (0x01). This makes the chunk unknown, and as it is ancillary it can be ignored.

The reference has a copy of the test image with the invalid chunk removed.

This test was requested (by @annevk) in the course of

because there is browser non-interop. Chrome renders the image, while Firefox throws an error, although this is currently being changed in the FF 125 time frame.

Copy link
Member

@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

@svgeesus svgeesus merged commit 11200bc into web-platform-tests:master Feb 29, 2024
@svgeesus svgeesus deleted the invalid-ancillary-recovery branch February 29, 2024 17:15
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.

2 participants