svn commit: r454149 - in branches/2017Q4/security/sudo: . files

Brad Davis brd at FreeBSD.org
Mon Nov 13 20:46:24 UTC 2017


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 {
+
+


More information about the svn-ports-branches mailing list