File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -353,4 +353,15 @@ public void DecodeHang<TPixel>(TestImageProvider<TPixel> provider)
353353 Assert . Equal ( 65503 , image . Width ) ;
354354 Assert . Equal ( 65503 , image . Height ) ;
355355 }
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+ }
356367}
Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ public static class Issues
308308 public const string Issue2478_JFXX = "Jpg/issues/issue-2478-jfxx.jpg" ;
309309 public const string Issue2564 = "Jpg/issues/issue-2564.jpg" ;
310310 public const string HangBadScan = "Jpg/issues/Hang_C438A851.jpg" ;
311+ public const string Issue2517 = "Jpg/issues/issue2517-bad-d7.jpg" ;
311312
312313 public static class Fuzz
313314 {
You can’t perform that action at this time.
0 commit comments