mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
nis: nis_local_group may read from __nisgroup[-1] (bug 28075)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
83b7008e11
commit
70099c7763
@ -31,6 +31,7 @@ nis_local_group (void)
|
||||
char *cptr;
|
||||
if (__nisgroup[0] == '\0'
|
||||
&& (cptr = getenv ("NIS_GROUP")) != NULL
|
||||
&& cptr[0] != '\0'
|
||||
&& strlen (cptr) < NIS_MAXNAMELEN)
|
||||
{
|
||||
char *cp = stpcpy (__nisgroup, cptr);
|
||||
|
Loading…
Reference in New Issue
Block a user