Author: aurel32 Date: 2010-06-13 20:45:34 +0000 (Sun, 13 Jun 2010) New Revision: 4345
Added: glibc-package/trunk/debian/patches/any/submitted-group_member.diff Modified: glibc-package/trunk/debian/changelog glibc-package/trunk/debian/patches/series Log: * Add patches/any/submitted-group_member.diff to fix an off-by-one error in group_member(). Closes: bug#570047. Modified: glibc-package/trunk/debian/changelog =================================================================== --- glibc-package/trunk/debian/changelog 2010-06-13 20:31:12 UTC (rev 4344) +++ glibc-package/trunk/debian/changelog 2010-06-13 20:45:34 UTC (rev 4345) @@ -9,8 +9,10 @@ transliteration support for ₡ sign. Closes: #585727. * control.in/libc: add a Breaks: on locales (<< 2.11), locales-all (<< 2.11). Closes: bug#585737. + * Add patches/any/submitted-group_member.diff to fix an off-by-one error + in group_member(). Closes: bug#570047. - -- Aurelien Jarno <aure...@debian.org> Sun, 13 Jun 2010 22:29:42 +0200 + -- Aurelien Jarno <aure...@debian.org> Sun, 13 Jun 2010 22:44:30 +0200 eglibc (2.11.1-3) unstable; urgency=low Added: glibc-package/trunk/debian/patches/any/submitted-group_member.diff =================================================================== --- glibc-package/trunk/debian/patches/any/submitted-group_member.diff (rev 0) +++ glibc-package/trunk/debian/patches/any/submitted-group_member.diff 2010-06-13 20:45:34 UTC (rev 4345) @@ -0,0 +1,20 @@ +2010-06-13 Aurelien Jarno <aurel...@aurel32.net> + + * posix/group_member.c(__group_member): Correct off-by-one + error. + +diff --git a/posix/group_member.c b/posix/group_member.c +index 7bd9c46..104a055 100644 +--- a/posix/group_member.c ++++ b/posix/group_member.c +@@ -41,8 +41,8 @@ __group_member (gid) + size *= 2; + } while (n == size / 2); + +- while (n >= 0) +- if (groups[n--] == gid) ++ while (n > 0) ++ if (groups[--n] == gid) + return 1; + + return 0; Modified: glibc-package/trunk/debian/patches/series =================================================================== --- glibc-package/trunk/debian/patches/series 2010-06-13 20:31:12 UTC (rev 4344) +++ glibc-package/trunk/debian/patches/series 2010-06-13 20:45:34 UTC (rev 4345) @@ -246,3 +246,4 @@ any/cvs-glob.diff any/local-dlfptr.diff any/submitted-string2-strcmp.diff +any/submitted-group_member.diff -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1onu3r-00031p...@alioth.debian.org