From owner-svn-src-stable@FreeBSD.ORG Fri Dec 3 22:48:15 2010 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9733E10656C1; Fri, 3 Dec 2010 22:48:15 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8558F8FC14; Fri, 3 Dec 2010 22:48:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB3MmFSk043623; Fri, 3 Dec 2010 22:48:15 GMT (envelope-from cperciva@svn.freebsd.org) Received: (from cperciva@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB3MmF8w043621; Fri, 3 Dec 2010 22:48:15 GMT (envelope-from cperciva@svn.freebsd.org) Message-Id: <201012032248.oB3MmF8w043621@svn.freebsd.org> From: Colin Percival Date: Fri, 3 Dec 2010 22:48:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216165 - stable/7/contrib/binutils/bfd X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2010 22:48:15 -0000 Author: cperciva Date: Fri Dec 3 22:48:15 2010 New Revision: 216165 URL: http://svn.freebsd.org/changeset/base/216165 Log: MFC r215105: Uninitialized buffers considered harmful. Approved by: re (bz) Modified: stable/7/contrib/binutils/bfd/opncls.c Directory Properties: stable/7/contrib/binutils/ (props changed) Modified: stable/7/contrib/binutils/bfd/opncls.c ============================================================================== --- stable/7/contrib/binutils/bfd/opncls.c Fri Dec 3 22:47:53 2010 (r216164) +++ stable/7/contrib/binutils/bfd/opncls.c Fri Dec 3 22:48:15 2010 (r216165) @@ -1151,7 +1151,7 @@ bfd_fill_in_gnu_debuglink_section (bfd * debuglink_size &= ~3; debuglink_size += 4; - contents = malloc (debuglink_size); + contents = bfd_zmalloc (debuglink_size); if (contents == NULL) { /* XXX Should we delete the section from the bfd ? */