This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14461] New: __m128i_strloadu_tolower returns unaligned __m128i


http://sourceware.org/bugzilla/show_bug.cgi?id=14461

             Bug #: 14461
           Summary: __m128i_strloadu_tolower returns unaligned __m128i
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: psyberbits@gmail.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Created attachment 6575
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6575
patch

__m128i_strloadu_tolower function in
sysdeps/x86_64/multiarch/strcasestr-nonascii.c does not use _mm_loadu_si128()
to return the variable. So, if the caller has unaligned stack the program will
crash.

We had crashes with openssl and glibc when we use Wine and the solution was to
use _mm_loadu_si128().

Here are the bug reports:
https://bugs.archlinux.org/task/23277
https://bugs.archlinux.org/task/31020

I attached the patch.

Thanks.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]