Date: Fri, 3 Dec 2010 22:48:15 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r216165 - stable/7/contrib/binutils/bfd Message-ID: <201012032248.oB3MmF8w043621@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 ? */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012032248.oB3MmF8w043621>