This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11701] New: off-by-one error in group_member()
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Jun 2010 20:49:09 -0000
- Subject: [Bug libc/11701] New: off-by-one error in group_member()
- Reply-to: sourceware-bugzilla at sourceware dot org
group_member does:
while (n >= 0)
if (groups[n--] == gid)
return 1;
with n being the number of groups. Thus groups[n] to groups[0] are accessed
instead of groups[n-1] to groups[0].
--
Summary: off-by-one error in group_member()
Product: glibc
Version: 2.12
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11701
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.