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/2892] New: pthread_setspecific code error


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.


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