diff options
author | rubidium <rubidium@openttd.org> | 2014-01-13 17:54:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-01-13 17:54:24 +0000 |
commit | a942619911b89c7b761d98c826d0e943e6f8b22e (patch) | |
tree | 53d56dc94fbdd3f174521dc69d94fcf1865596a5 /src/blitter/32bpp_ssse3.hpp | |
parent | 54a898be33588161249cc7b57637aed6ae2237cc (diff) | |
download | openttd-a942619911b89c7b761d98c826d0e943e6f8b22e.tar.xz |
(svn r26247) -Fix [FS#5854, FS#5855]: Possible out of bounds reads with the sse blitters (MJP)
Diffstat (limited to 'src/blitter/32bpp_ssse3.hpp')
-rw-r--r-- | src/blitter/32bpp_ssse3.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blitter/32bpp_ssse3.hpp b/src/blitter/32bpp_ssse3.hpp index cede4185d..97c67657e 100644 --- a/src/blitter/32bpp_ssse3.hpp +++ b/src/blitter/32bpp_ssse3.hpp @@ -47,8 +47,7 @@ __m128i zero = _mm_setzero_si128(); \ __m128i colAB = _mm_unpacklo_epi8(colourX2, zero); \ \ - __m128i briAB; \ - INSR64(brightnessX2, briAB, 0); \ + __m128i briAB = _mm_cvtsi32_si128(brightnessX2); \ briAB = _mm_shuffle_epi8(briAB, briAB_cm); /* DEFAULT_BRIGHTNESS in 0, 0x00 in 2. */ \ colAB = _mm_mullo_epi16(colAB, briAB); \ __m128i colAB_ob = _mm_srli_epi16(colAB, 8+7); \ |