File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -353,4 +353,15 @@ public void DecodeHang<TPixel>(TestImageProvider<TPixel> provider)
353
353
Assert . Equal ( 65503 , image . Width ) ;
354
354
Assert . Equal ( 65503 , image . Height ) ;
355
355
}
356
+
357
+ // https://github.com/SixLabors/ImageSharp/issues/2517
358
+ [ Theory ]
359
+ [ WithFile ( TestImages . Jpeg . Issues . Issue2517 , PixelTypes . Rgba32 ) ]
360
+ public void Issue2517_DecodeWorks < TPixel > ( TestImageProvider < TPixel > provider )
361
+ where TPixel : unmanaged, IPixel < TPixel >
362
+ {
363
+ using Image < TPixel > image = provider . GetImage ( JpegDecoder . Instance ) ;
364
+ image . DebugSave ( provider ) ;
365
+ image . CompareToOriginal ( provider ) ;
366
+ }
356
367
}
Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ public static class Issues
307
307
public const string Issue2478_JFXX = "Jpg/issues/issue-2478-jfxx.jpg" ;
308
308
public const string Issue2564 = "Jpg/issues/issue-2564.jpg" ;
309
309
public const string HangBadScan = "Jpg/issues/Hang_C438A851.jpg" ;
310
+ public const string Issue2517 = "Jpg/issues/issue2517-bad-d7.jpg" ;
310
311
311
312
public static class Fuzz
312
313
{
You can’t perform that action at this time.
0 commit comments