From 69458f4f8df9e00c1e2e8e0e0166aa3577320688 Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Tue, 25 Jan 2022 21:56:14 +0300 Subject: [PATCH] gfoidl len check removal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Günther Foidl --- src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs b/src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs index e5faf97257..ca66519eb4 100644 --- a/src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs +++ b/src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs @@ -149,7 +149,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components { DebugGuard.IsTrue(Ssse3.IsSupported, "Ssse3 support is required to run this operation!"); - fixed (byte* shuffleVectorsPtr = SseShuffleMasks) + fixed (byte* shuffleVectorsPtr = &MemoryMarshal.GetReference(SseShuffleMasks) { Vector128 rowA = block.V0.AsByte(); Vector128 rowB = block.V1.AsByte();