From owner-svn-ports-all@freebsd.org Mon Nov 13 20:46:24 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C6F1DD5445; Mon, 13 Nov 2017 20:46:24 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4948D7D704; Mon, 13 Nov 2017 20:46:24 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vADKkNrr031881; Mon, 13 Nov 2017 20:46:23 GMT (envelope-from brd@FreeBSD.org) Received: (from brd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vADKkNnN031879; Mon, 13 Nov 2017 20:46:23 GMT (envelope-from brd@FreeBSD.org) Message-Id: <201711132046.vADKkNnN031879@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brd set sender to brd@FreeBSD.org using -f From: Brad Davis Date: Mon, 13 Nov 2017 20:46:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r454149 - in branches/2017Q4/security/sudo: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: brd X-SVN-Commit-Paths: in branches/2017Q4/security/sudo: . files X-SVN-Commit-Revision: 454149 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2017 20:46:24 -0000 Author: brd Date: Mon Nov 13 20:46:22 2017 New Revision: 454149 URL: https://svnweb.freebsd.org/changeset/ports/454149 Log: MFH: r454126 Pull in an upstream patch for security/sudo to not coredump if the hostname is not set. PR: 222510 Approved by: garga Approved by: portmgr (swills) Added: branches/2017Q4/security/sudo/files/patch-bug222510 - copied unchanged from r454126, head/security/sudo/files/patch-bug222510 Modified: branches/2017Q4/security/sudo/Makefile Directory Properties: branches/2017Q4/ (props changed) Modified: branches/2017Q4/security/sudo/Makefile ============================================================================== --- branches/2017Q4/security/sudo/Makefile Mon Nov 13 19:36:53 2017 (r454148) +++ branches/2017Q4/security/sudo/Makefile Mon Nov 13 20:46:22 2017 (r454149) @@ -3,6 +3,7 @@ PORTNAME= sudo PORTVERSION= 1.8.21p2 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SUDO Copied: branches/2017Q4/security/sudo/files/patch-bug222510 (from r454126, head/security/sudo/files/patch-bug222510) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q4/security/sudo/files/patch-bug222510 Mon Nov 13 20:46:22 2017 (r454149, copy of r454126, head/security/sudo/files/patch-bug222510) @@ -0,0 +1,14 @@ +diff -r 926deea0d506 -r fafb3a3083cb lib/util/gethostname.c +--- lib/util/gethostname.c Tue Oct 17 14:28:38 2017 -0600 ++++ lib/util/gethostname.c Fri Oct 20 07:37:40 2017 -0600 +@@ -42,7 +42,7 @@ + + hname = malloc(host_name_max + 1); + if (hname != NULL) { +- if (gethostname(hname, host_name_max + 1) == 0) { ++ if (gethostname(hname, host_name_max + 1) == 0 && *hname != '\0') { + /* Old gethostname() may not NUL-terminate if there is no room. */ + hname[host_name_max] = '\0'; + } else { + +