Skip to content

Commit 4abf307

Browse files
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>
1 parent 66671a0 commit 4abf307

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ImageSharp/Formats/ImageDecoderCore.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ or InvalidImageContentException
5656
or InvalidOperationException
5757
or NotSupportedException)
5858
{
59+
// Intentionally ignored in non-strict segment integrity modes.
5960
}
6061
}
6162

@@ -82,6 +83,7 @@ or InvalidImageContentException
8283
or InvalidOperationException
8384
or NotSupportedException)
8485
{
86+
// Intentionally ignored when image data integrity handling is set to IgnoreImageData.
8587
}
8688
}
8789

0 commit comments

Comments
 (0)