Skip to content

Commit cb68906

Browse files
Merge pull request #2335 from SixLabors/js/2334
Add test images for 2334
2 parents b895b6e + cf4c384 commit cb68906

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,11 @@ public void Issue2136_DecodeWorks<TPixel>(TestImageProvider<TPixel> provider)
302302
}
303303

304304
// https://github.com/SixLabors/ImageSharp/issues/2315
305+
// https://github.com/SixLabors/ImageSharp/issues/2334
305306
[Theory]
306307
[WithFile(TestImages.Jpeg.Issues.Issue2315_NotEnoughBytes, PixelTypes.Rgba32)]
308+
[WithFile(TestImages.Jpeg.Issues.Issue2334_NotEnoughBytesA, PixelTypes.Rgba32)]
309+
[WithFile(TestImages.Jpeg.Issues.Issue2334_NotEnoughBytesB, PixelTypes.Rgba32)]
307310
public void Issue2315_DecodeWorks<TPixel>(TestImageProvider<TPixel> provider)
308311
where TPixel : unmanaged, IPixel<TPixel>
309312
{

tests/ImageSharp.Tests/TestImages.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ public static class Issues
282282
public const string Issue2133_DeduceColorSpace = "Jpg/issues/Issue2133.jpg";
283283
public const string Issue2136_ScanMarkerExtraneousBytes = "Jpg/issues/Issue2136-scan-segment-extraneous-bytes.jpg";
284284
public const string Issue2315_NotEnoughBytes = "Jpg/issues/issue-2315.jpg";
285+
public const string Issue2334_NotEnoughBytesA = "Jpg/issues/issue-2334-a.jpg";
286+
public const string Issue2334_NotEnoughBytesB = "Jpg/issues/issue-2334-b.jpg";
285287

286288
public static class Fuzz
287289
{
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)