From: Marc André Tanner Date: Sun, 11 Mar 2018 08:55:06 +0000 (+0100) Subject: fix out of bounds write for zero length buffer in gethostname X-Git-Tag: v1.1.20~110 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f6dc30470d5751b83645df180a60cad3e7907ef;p=oweals%2Fmusl.git fix out of bounds write for zero length buffer in gethostname --- diff --git a/src/unistd/gethostname.c b/src/unistd/gethostname.c index f984b7dd..633ef571 100644 --- a/src/unistd/gethostname.c +++ b/src/unistd/gethostname.c @@ -8,6 +8,6 @@ int gethostname(char *name, size_t len) if (uname(&uts)) return -1; if (len > sizeof uts.nodename) len = sizeof uts.nodename; for (i=0; i