public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12159] strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly.
2010-10-25 16:04 [Bug libc/12159] New: strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly richardpku at gmail dot com
@ 2010-10-25 16:04 ` richardpku at gmail dot com
2010-10-25 20:02 ` drepper.fsp at gmail dot com
2014-06-30 7:17 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: richardpku at gmail dot com @ 2010-10-25 16:04 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12159
--- Comment #1 from Richard Li <richardpku at gmail dot com> 2010-10-25 15:32:13 UTC ---
Created attachment 5084
--> http://sourceware.org/bugzilla/attachment.cgi?id=5084
A quick fix
This patch fixes the value of %xmm1 and the return value.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/12159] New: strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly.
@ 2010-10-25 16:04 richardpku at gmail dot com
2010-10-25 16:04 ` [Bug libc/12159] " richardpku at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: richardpku at gmail dot com @ 2010-10-25 16:04 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12159
Summary: strchr (x86-64/multiarch/SSE4.2) handles second
parameter incorrectly.
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: richardpku@gmail.com
sysdeps/x86-64/multiarch/strchr.S (Both glibc-2.12.1 and latest git version):
If %rdi is aligned to a 16-byte boundary, the value of %xmm1 is not properly
set. The following program exposes this problem:
#include <stdio.h>
#include <string.h>
int main ()
{
char s[] __attribute__((aligned(16))) = "\xff";
printf ("%p\n", strchr (s, '\xfe'));
return 0;
}
It is expected to output "(nil)", but it actually prints a valid pointer if run
on an x86-64 system with a multiarch-enabled glibc and a CPU which supports
SSE4.2.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/12159] strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly.
2010-10-25 16:04 [Bug libc/12159] New: strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly richardpku at gmail dot com
2010-10-25 16:04 ` [Bug libc/12159] " richardpku at gmail dot com
@ 2010-10-25 20:02 ` drepper.fsp at gmail dot com
2014-06-30 7:17 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: drepper.fsp at gmail dot com @ 2010-10-25 20:02 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12159
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Ulrich Drepper <drepper.fsp at gmail dot com> 2010-10-25 20:02:45 UTC ---
Fixed in git.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/12159] strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly.
2010-10-25 16:04 [Bug libc/12159] New: strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly richardpku at gmail dot com
2010-10-25 16:04 ` [Bug libc/12159] " richardpku at gmail dot com
2010-10-25 20:02 ` drepper.fsp at gmail dot com
@ 2014-06-30 7:17 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30 7:17 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=12159
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-30 7:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-25 16:04 [Bug libc/12159] New: strchr (x86-64/multiarch/SSE4.2) handles second parameter incorrectly richardpku at gmail dot com
2010-10-25 16:04 ` [Bug libc/12159] " richardpku at gmail dot com
2010-10-25 20:02 ` drepper.fsp at gmail dot com
2014-06-30 7:17 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).