public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7
@ 2010-11-09 23:46 hjl.tools at gmail dot com
  2010-11-10  0:05 ` [Bug libc/12205] " hjl.tools at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-09 23:46 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: Bad x86-64 strncasecmp on Intel Core i7
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: hjl.tools@gmail.com


(gdb) p cp + 1
$78 = 0x749ffa "gottpoff"
(gdb) p gotrel[j].str
$79 = 0x505cbe "GOTPLT"
(gdb) p len
$80 = 6
(gdb) call strncasecmp (cp + 1, gotrel[j].str, gotrel[j].len)
$81 = 0
(gdb)

-- 
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] 6+ messages in thread

* [Bug libc/12205] Bad x86-64 strncasecmp on Intel Core i7
  2010-11-09 23:46 [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7 hjl.tools at gmail dot com
@ 2010-11-10  0:05 ` hjl.tools at gmail dot com
  2010-11-10  2:04 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-10  0:05 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-10 00:05:34 UTC ---
[hjl@gnu-35 junk-1]$ cat test.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static char cp [4096+16] __attribute__ ((aligned(4096)));
static char gotrel[4096] __attribute__ ((aligned(4096)));

int
main ()
{
  char *p = cp + 0xffa;
  char *g = gotrel + 0xcbe;
  strcpy (p, "gottpoff");
  strcpy (g, "GOTPLT");
  printf ("%p: %s\n", p, p);
  printf ("%p: %s\n", g, g);
  if (strncasecmp (p, g, 6) <= 0)
    abort ();
  return 0;
}
[hjl@gnu-35 junk-1]$ make
cc     test.c   -o test
./test
0x602ffa: gottpoff
0x604cbe: GOTPLT
make: *** [all] Aborted
[hjl@gnu-35 junk-1]$

-- 
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] 6+ messages in thread

* [Bug libc/12205] Bad x86-64 strncasecmp on Intel Core i7
  2010-11-09 23:46 [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7 hjl.tools at gmail dot com
  2010-11-10  0:05 ` [Bug libc/12205] " hjl.tools at gmail dot com
@ 2010-11-10  2:04 ` hjl.tools at gmail dot com
  2010-11-10  3:41 ` hjl.tools at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-10  2:04 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-10 02:04:22 UTC ---
Created attachment 5118
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5118
A patch

-- 
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] 6+ messages in thread

* [Bug libc/12205] Bad x86-64 strncasecmp on Intel Core i7
  2010-11-09 23:46 [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7 hjl.tools at gmail dot com
  2010-11-10  0:05 ` [Bug libc/12205] " hjl.tools at gmail dot com
  2010-11-10  2:04 ` hjl.tools at gmail dot com
@ 2010-11-10  3:41 ` hjl.tools at gmail dot com
  2010-11-10  8:06 ` drepper.fsp at gmail dot com
  2014-06-30  6:28 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-10  3:41 UTC (permalink / raw)
  To: glibc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://sourceware.org/ml/li
                   |                            |bc-alpha/2010-11/msg00031.h
                   |                            |tml

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-10 03:41:31 UTC ---
A patch is at

http://sourceware.org/ml/libc-alpha/2010-11/msg00031.html

-- 
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] 6+ messages in thread

* [Bug libc/12205] Bad x86-64 strncasecmp on Intel Core i7
  2010-11-09 23:46 [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7 hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2010-11-10  3:41 ` hjl.tools at gmail dot com
@ 2010-11-10  8:06 ` drepper.fsp at gmail dot com
  2014-06-30  6:28 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: drepper.fsp at gmail dot com @ 2010-11-10  8:06 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Ulrich Drepper <drepper.fsp at gmail dot com> 2010-11-10 08:06:44 UTC ---
 Patch is 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] 6+ messages in thread

* [Bug libc/12205] Bad x86-64 strncasecmp on Intel Core i7
  2010-11-09 23:46 [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7 hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2010-11-10  8:06 ` drepper.fsp at gmail dot com
@ 2014-06-30  6:28 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  6:28 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12205

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-30  6:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-09 23:46 [Bug libc/12205] New: Bad x86-64 strncasecmp on Intel Core i7 hjl.tools at gmail dot com
2010-11-10  0:05 ` [Bug libc/12205] " hjl.tools at gmail dot com
2010-11-10  2:04 ` hjl.tools at gmail dot com
2010-11-10  3:41 ` hjl.tools at gmail dot com
2010-11-10  8:06 ` drepper.fsp at gmail dot com
2014-06-30  6:28 ` 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).