vlc | branch: master | Lyndon Brown <jnq...@gmail.com> | Tue Jan 22 06:18:12 
2019 +0000| [f906a2dbc5e737c2b18cd280726813cdbd576512] | committer: 
Jean-Baptiste Kempf

i420_rgb: fix an offset (buffer overflow) in intrinsics

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f906a2dbc5e737c2b18cd280726813cdbd576512
---

 modules/video_chroma/i420_rgb_sse2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/i420_rgb_sse2.h 
b/modules/video_chroma/i420_rgb_sse2.h
index f8de7aba54..c0f35c1241 100644
--- a/modules/video_chroma/i420_rgb_sse2.h
+++ b/modules/video_chroma/i420_rgb_sse2.h
@@ -566,7 +566,7 @@ movdqu    %%xmm2, 48(%3)  # Store ABGR15 ... ABGR12         
              \n\
     xmm5 = _mm_unpackhi_epi8(xmm5, xmm1);           \
     xmm7 = _mm_slli_epi16(xmm7, 2);                 \
     xmm5 = _mm_or_si128(xmm5, xmm7);                \
-    _mm_storeu_si128((__m128i*)(p_buffer+16), xmm5);
+    _mm_storeu_si128((__m128i*)(p_buffer+8), xmm5);
 
 #define SSE2_UNPACK_16_ALIGNED                      \
     xmm5 = _mm_set1_epi32(0xf8f8f8f8UL);            \

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to