svn commit: r216164 - stable/8/contrib/binutils/bfd
Colin Percival
cperciva at FreeBSD.org
Fri Dec 3 22:47:54 UTC 2010
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 ? */
More information about the svn-src-stable
mailing list