Browse Source

add regression test for #624

pull/643/head
Anton Firszov 8 years ago
parent
commit
65a050495f
  1. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.Images.cs
  2. 1
      tests/ImageSharp.Tests/TestImages.cs
  3. 2
      tests/Images/External
  4. BIN
      tests/Images/Input/Jpg/issues/Issue624-DhtHasWrongLength-Progressive-N.jpg

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

@ -38,6 +38,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
TestImages.Jpeg.Issues.NoEoiProgressive517,
TestImages.Jpeg.Issues.BadRstProgressive518,
TestImages.Jpeg.Issues.MissingFF00ProgressiveBedroom159,
TestImages.Jpeg.Issues.DhtHasWrongLength624,
};
/// <summary>

1
tests/ImageSharp.Tests/TestImages.cs

@ -144,6 +144,7 @@ namespace SixLabors.ImageSharp.Tests
public const string NoEoiProgressive517 = "Jpg/issues/Issue517-No-EOI-Progressive.jpg";
public const string BadRstProgressive518 = "Jpg/issues/Issue518-Bad-RST-Progressive.jpg";
public const string InvalidCast520 = "Jpg/issues/Issue520-InvalidCast.jpg";
public const string DhtHasWrongLength624 = "Jpg/issues/Issue624-DhtHasWrongLength-Progressive-N.jpg";
}
public static readonly string[] All = Baseline.All.Concat(Progressive.All).ToArray();

2
tests/Images/External

@ -1 +1 @@
Subproject commit d9d93bbdd18dd7b818c0d19cc8f967be98045d3c
Subproject commit 98fb7e2e4d5935b1c733bd2b206b6145b71ef378

BIN
tests/Images/Input/Jpg/issues/Issue624-DhtHasWrongLength-Progressive-N.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Loading…
Cancel
Save