public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] nis: nis_local_group may read from __nisgroup[-1] (bug 28075)
@ 2021-07-12  6:01 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2021-07-12  6:01 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=70099c7763b8c47a4bb1eef1c41601c602a83270

commit 70099c7763b8c47a4bb1eef1c41601c602a83270
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Jul 12 07:58:07 2021 +0200

    nis: nis_local_group may read from __nisgroup[-1] (bug 28075)
    
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>

Diff:
---
 nis/nis_local_names.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nis/nis_local_names.c b/nis/nis_local_names.c
index 080dcf88bd..218764f32e 100644
--- 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-12  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12  6:01 [glibc] nis: nis_local_group may read from __nisgroup[-1] (bug 28075) Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).