Skip to content

PNG: Throw InvalidImageContentException when frame control chunk does not have enough data#3094

Merged
JimBobSquarePants merged 2 commits intomainfrom
bp/Issue3093
Mar 26, 2026
Merged

PNG: Throw InvalidImageContentException when frame control chunk does not have enough data#3094
JimBobSquarePants merged 2 commits intomainfrom
bp/Issue3093

Conversation

@brianpopow
Copy link
Collaborator

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

This PR changes the FrameControl .Parse method to throw an InvalidImageContentException when there is not enough data, as discovered in #3093

Copy link
Member

@JimBobSquarePants JimBobSquarePants left a comment

Choose a reason for hiding this comment

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

Thanks!

@JimBobSquarePants JimBobSquarePants merged commit bd19151 into main Mar 26, 2026
12 checks passed
@JimBobSquarePants JimBobSquarePants deleted the bp/Issue3093 branch March 26, 2026 01:07
@JimBobSquarePants JimBobSquarePants linked an issue Mar 26, 2026 that may be closed by this pull request
4 tasks
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.

IOOB in FrameControl.Parse on malformed APNG input (81 bytes)

2 participants