Date: Tue, 7 Feb 2017 15:49:28 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433563 - in head/sysutils/smartmontools: . files Message-ID: <201702071549.v17FnSUt038990@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Tue Feb 7 15:49:27 2017 New Revision: 433563 URL: https://svnweb.freebsd.org/changeset/ports/433563 Log: Add a patch to zero-initialise a variable that is passed to the kernel where it could trigger assertions. PR: 178032 Submitted by: op@hardenedbsd.org Approved by: samm@os2.kiev.ua (maintainer) Sponsored by: opBSD Added: head/sysutils/smartmontools/files/patch-os__freebsd.cpp (contents, props changed) Modified: head/sysutils/smartmontools/Makefile Modified: head/sysutils/smartmontools/Makefile ============================================================================== --- head/sysutils/smartmontools/Makefile Tue Feb 7 15:39:00 2017 (r433562) +++ head/sysutils/smartmontools/Makefile Tue Feb 7 15:49:27 2017 (r433563) @@ -3,7 +3,7 @@ PORTNAME= smartmontools PORTVERSION= 6.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF Added: head/sysutils/smartmontools/files/patch-os__freebsd.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/smartmontools/files/patch-os__freebsd.cpp Tue Feb 7 15:49:27 2017 (r433563) @@ -0,0 +1,11 @@ +--- os_freebsd.cpp.orig 2016-12-17 18:42:22 UTC ++++ os_freebsd.cpp +@@ -1936,6 +1936,8 @@ smart_device * freebsd_smart_interface:: + int i; + const char * test_name = name; + ++ memset(&ccb, 0, sizeof(ccb)); ++ + // if dev_name null, or string length zero + if (!name || !*name) + return 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702071549.v17FnSUt038990>