projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83b7008
)
nis: nis_local_group may read from __nisgroup[-1] (bug 28075)
author
Florian Weimer
<fweimer@redhat.com>
Mon, 12 Jul 2021 05:58:07 +0000
(07:58 +0200)
committer
Florian Weimer
<fweimer@redhat.com>
Mon, 12 Jul 2021 05:58:07 +0000
(07:58 +0200)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
nis/nis_local_names.c
patch
|
blob
|
history
diff --git
a/nis/nis_local_names.c
b/nis/nis_local_names.c
index 080dcf88bd67d5d0cb9d76bca3cbd01ace39c863..218764f32e99ffc1064ff305c1dab8fc5b907a38 100644
(file)
--- a/
nis/nis_local_names.c
+++ b/
nis/nis_local_names.c
@@
-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);