This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14461] New: __m128i_strloadu_tolower returns unaligned __m128i
- From: "psyberbits at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 13 Aug 2012 01:00:42 +0000
- Subject: [Bug libc/14461] New: __m128i_strloadu_tolower returns unaligned __m128i
- Auto-submitted: auto-generated
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.