Skip to content

Enhance decoders with segment integrity handling#3119

Merged
JimBobSquarePants merged 5 commits intomainfrom
js/proper-segment-integrity-handling
Apr 20, 2026
Merged

Enhance decoders with segment integrity handling#3119
JimBobSquarePants merged 5 commits intomainfrom
js/proper-segment-integrity-handling

Conversation

@JimBobSquarePants
Copy link
Copy Markdown
Member

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

Fixes #3118

This pull request introduces improved error handling and segment integrity policies for image decoding. The main focus is on making ancillary segment parsing (such as ICC profiles, comments, and application extensions) more robust and configurable, ensuring that malformed or incomplete segments are handled according to the decoder's integrity policy.

Comment thread src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs Fixed
Comment thread src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs Fixed
Comment thread src/ImageSharp/Formats/ImageDecoderCore.cs Fixed
Comment thread src/ImageSharp/Formats/ImageDecoderCore.cs Fixed
JimBobSquarePants and others added 3 commits April 19, 2026 18:32
…tch block'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@JimBobSquarePants JimBobSquarePants merged commit 1bc4207 into main Apr 20, 2026
12 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/proper-segment-integrity-handling branch April 20, 2026 05:43
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.

Correctly handle Multiple SOF with SOS data

1 participant