From owner-svn-ports-head@freebsd.org Tue Feb 7 15:49:29 2017 Return-Path: Delivered-To: svn-ports-head@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 65E18CD5A36; Tue, 7 Feb 2017 15:49:29 +0000 (UTC) (envelope-from tijl@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 28A85B02; Tue, 7 Feb 2017 15:49:29 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v17FnSDc038992; Tue, 7 Feb 2017 15:49:28 GMT (envelope-from tijl@FreeBSD.org) Received: (from tijl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v17FnSUt038990; Tue, 7 Feb 2017 15:49:28 GMT (envelope-from tijl@FreeBSD.org) Message-Id: <201702071549.v17FnSUt038990@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tijl set sender to tijl@FreeBSD.org using -f From: Tijl Coosemans Date: Tue, 7 Feb 2017 15:49:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433563 - in head/sysutils/smartmontools: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2017 15:49:29 -0000 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;