From 677ebe774dfcb29f4787d83abb329f00500efe6b Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 1 Mar 2024 21:56:43 -0800 Subject: [PATCH] lib/x86/adler32: fix wrong array length in adler32_sse2_chunk() --- lib/x86/adler32_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x86/adler32_impl.h b/lib/x86/adler32_impl.h index 6523a024..c8b5153b 100644 --- a/lib/x86/adler32_impl.h +++ b/lib/x86/adler32_impl.h @@ -124,7 +124,7 @@ static forceinline ATTRIBUTES void adler32_sse2_chunk(const __m128i *p, const __m128i *const end, u32 *s1, u32 *s2) { - static const u16 _aligned_attribute(16) mults[4][16] = { + static const u16 _aligned_attribute(16) mults[4][8] = { { 32, 31, 30, 29, 28, 27, 26, 25 }, { 24, 23, 22, 21, 20, 19, 18, 17 }, { 16, 15, 14, 13, 12, 11, 10, 9 },