From 4abf307ca696fac8d7e33df0c6462327d0f96ac7 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 19 Apr 2026 18:32:48 +1000 Subject: [PATCH] Potential fix for pull request finding 'Poor error handling: empty catch block' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- src/ImageSharp/Formats/ImageDecoderCore.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImageSharp/Formats/ImageDecoderCore.cs b/src/ImageSharp/Formats/ImageDecoderCore.cs index f76f1cd7a4..23b517568d 100644 --- a/src/ImageSharp/Formats/ImageDecoderCore.cs +++ b/src/ImageSharp/Formats/ImageDecoderCore.cs @@ -56,6 +56,7 @@ internal abstract class ImageDecoderCore or InvalidOperationException or NotSupportedException) { + // Intentionally ignored in non-strict segment integrity modes. } } @@ -82,6 +83,7 @@ internal abstract class ImageDecoderCore or InvalidOperationException or NotSupportedException) { + // Intentionally ignored when image data integrity handling is set to IgnoreImageData. } }