Contents of /trunk/glibc/patches/glibc-2.18-strstr-hackfix.patch
Parent Directory | Revision Log
Revision 2283 -
(show annotations)
(download)
Mon Sep 16 11:57:11 2013 UTC (11 years ago) by niro
File size: 543 byte(s)
Mon Sep 16 11:57:11 2013 UTC (11 years ago) by niro
File size: 543 byte(s)
-glibc-2.18 CVEs and fixes
1 | diff --git a/sysdeps/x86_64/multiarch/strstr.c b/sysdeps/x86_64/multiarch/strstr.c |
2 | index cd63b68..03d8b9a 100644 |
3 | --- a/sysdeps/x86_64/multiarch/strstr.c |
4 | +++ b/sysdeps/x86_64/multiarch/strstr.c |
5 | @@ -86,7 +86,7 @@ |
6 | /* Simple replacement of movdqu to address 4KB boundary cross issue. |
7 | If EOS occurs within less than 16B before 4KB boundary, we don't |
8 | cross to next page. */ |
9 | -static __m128i |
10 | +static inline __m128i |
11 | __m128i_strloadu (const unsigned char * p, __m128i zero) |
12 | { |
13 | if (__builtin_expect ((int) ((size_t) p & 0xfff) > 0xff0, 0)) |