Skip to content

Commit 64d9146

Browse files
author
Dmitry Pentin
committed
Added malformed image
1 parent 8cdcda3 commit 64d9146

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public partial class JpegDecoderTests
105105
TestImages.Jpeg.Issues.Fuzz.IndexOutOfRangeException1693A,
106106
TestImages.Jpeg.Issues.Fuzz.IndexOutOfRangeException1693B,
107107
TestImages.Jpeg.Issues.Fuzz.IndexOutOfRangeException824C,
108+
TestImages.Jpeg.Issues.Fuzz.NullReferenceException2085,
108109
};
109110

110111
private static readonly Dictionary<string, float> CustomToleranceValues = new()

tests/ImageSharp.Tests/TestImages.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ public static class Fuzz
292292
public const string AccessViolationException922 = "Jpg/issues/fuzz/Issue922-AccessViolationException.jpg";
293293
public const string IndexOutOfRangeException1693A = "Jpg/issues/fuzz/Issue1693-IndexOutOfRangeException-A.jpg";
294294
public const string IndexOutOfRangeException1693B = "Jpg/issues/fuzz/Issue1693-IndexOutOfRangeException-B.jpg";
295+
public const string NullReferenceException2085 = "Jpg/issues/fuzz/Issue2085-NullReferenceException.jpg";
295296
}
296297
}
297298

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)