From owner-svn-src-stable@FreeBSD.ORG Fri Dec 3 22:47:54 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 10B2B1065674; Fri, 3 Dec 2010 22:47:54 +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 F2DFB8FC0C; Fri, 3 Dec 2010 22:47:53 +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 oB3Mlr4M043541; Fri, 3 Dec 2010 22:47:53 GMT (envelope-from cperciva@svn.freebsd.org) Received: (from cperciva@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB3Mlr50043539; Fri, 3 Dec 2010 22:47:53 GMT (envelope-from cperciva@svn.freebsd.org) Message-Id: <201012032247.oB3Mlr50043539@svn.freebsd.org> From: Colin Percival Date: Fri, 3 Dec 2010 22:47:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216164 - stable/8/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:47:54 -0000 Author: cperciva Date: Fri Dec 3 22:47:53 2010 New Revision: 216164 URL: http://svn.freebsd.org/changeset/base/216164 Log: MFC r215105: Uninitialized buffers considered harmful. Approved by: re (bz) Modified: stable/8/contrib/binutils/bfd/opncls.c Directory Properties: stable/8/contrib/binutils/ (props changed) Modified: stable/8/contrib/binutils/bfd/opncls.c ============================================================================== --- stable/8/contrib/binutils/bfd/opncls.c Fri Dec 3 22:27:51 2010 (r216163) +++ stable/8/contrib/binutils/bfd/opncls.c Fri Dec 3 22:47:53 2010 (r216164) @@ -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 ? */