|
|
@ -1,6 +1,7 @@ |
|
|
// Copyright (c) Six Labors.
|
|
|
// Copyright (c) Six Labors.
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
|
|
|
|
using System.IO; |
|
|
using System.Runtime.Intrinsics.X86; |
|
|
using System.Runtime.Intrinsics.X86; |
|
|
using Microsoft.DotNet.RemoteExecutor; |
|
|
using Microsoft.DotNet.RemoteExecutor; |
|
|
using SixLabors.ImageSharp.Formats; |
|
|
using SixLabors.ImageSharp.Formats; |
|
|
@ -665,4 +666,11 @@ public partial class PngDecoderTests |
|
|
Assert.True(eofHitCounter.EofHitCount <= 3); |
|
|
Assert.True(eofHitCounter.EofHitCount <= 3); |
|
|
Assert.Equal(new Size(200, 120), eofHitCounter.Image.Size); |
|
|
Assert.Equal(new Size(200, 120), eofHitCounter.Image.Size); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void Decode_Issue2666() |
|
|
|
|
|
{ |
|
|
|
|
|
string path = Path.GetFullPath(Path.Combine(TestEnvironment.InputImagesDirectoryFullPath, TestImages.Png.Issue2666)); |
|
|
|
|
|
using Image image = Image.Load(path); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|