Bug#296490: libc6: getgrnam segfault (using __nscd_getgrnam_r)

2005-02-23 Thread Daniel Jacobowitz
On Tue, Feb 22, 2005 at 09:50:55PM +0100, Tom Parker wrote: > Florian Weimer wrote: > >* Tom Parker: > >>Calling getgrnam() with a NULL argument, with group in > >>/etc/nsswitch.conf set to 'compat' can cause a segfault in > >>__nscd_getgrnam_r due to a lack of a check for a NULL string before > >>

Bug#296490: libc6: getgrnam segfault (using __nscd_getgrnam_r)

2005-02-22 Thread Tom Parker
Florian Weimer wrote: * Tom Parker: Calling getgrnam() with a NULL argument, with group in /etc/nsswitch.conf set to 'compat' can cause a segfault in __nscd_getgrnam_r due to a lack of a check for a NULL string before doing strlen(). Is there any standard that defines the behavior of getgrnam(NULL)

Bug#296490: libc6: getgrnam segfault (using __nscd_getgrnam_r)

2005-02-22 Thread Florian Weimer
* Tom Parker: > Calling getgrnam() with a NULL argument, with group in > /etc/nsswitch.conf set to 'compat' can cause a segfault in > __nscd_getgrnam_r due to a lack of a check for a NULL string before > doing strlen(). Is there any standard that defines the behavior of getgrnam(NULL)? -- To U

Bug#296490: libc6: getgrnam segfault (using __nscd_getgrnam_r)

2005-02-22 Thread Tom Parker
Package: libc6 Version: 2.3.2.ds1-20 Severity: normal Tags: patch Calling getgrnam() with a NULL argument, with group in /etc/nsswitch.conf set to 'compat' can cause a segfault in __nscd_getgrnam_r due to a lack of a check for a NULL string before doing strlen(). I've attached a patch, but this