This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2892] New: pthread_setspecific code error
- From: "maxim dot yegorushkin at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Jul 2006 21:16:57 -0000
- Subject: [Bug libc/2892] New: pthread_setspecific code error
- Reply-to: sourceware-bugzilla at sourceware dot org
latest cvs snapshot on Fri Jul 7 22:13:25 BST 2006
nptl/pthread_setspecific.c:55
if (KEY_UNUSED ((seq = __pthread_keys[key].seq))
|| key >= PTHREAD_KEYS_MAX)
/* Not valid. */
return EINVAL;
The index (key) is checked after it was used. Looks like it should be checked
before.
--
Summary: pthread_setspecific code error
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: maxim dot yegorushkin at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2892
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.