Skip to content

Commit 5a9f42d

Browse files
Break, don't throw
1 parent c3e990f commit 5a9f42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ private void DecodeStripsChunky<TPixel>(
559559
ulong required = (ulong)bytesPerRow * (ulong)stripHeight;
560560
if (available < required)
561561
{
562-
TiffThrowHelper.ThrowImageFormatException("StripByteCounts is smaller than required for uncompressed data.");
562+
break;
563563
}
564564

565565
for (int r = 0; r < stripHeight; r++)

0 commit comments

Comments
 (0)