Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2010 22:47:53 +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-8@freebsd.org
Subject:   svn commit: r216164 - stable/8/contrib/binutils/bfd
Message-ID:  <201012032247.oB3Mlr50043539@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ?  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012032247.oB3Mlr50043539>