diff options
author | Nick Clifton <nickc@redhat.com> | 2013-11-21 13:29:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-11-21 13:29:47 +0000 |
commit | 8d5c4b7bfdfa5f2b40fa056132823c8e9497dc72 (patch) | |
tree | 4b91991635f21ef748d2b3f2d61d4016586be8be /ld/pe-dll.c | |
parent | 630b051036e446754f13d1f07cfd6de0612a90de (diff) | |
download | gdb-8d5c4b7bfdfa5f2b40fa056132823c8e9497dc72.zip gdb-8d5c4b7bfdfa5f2b40fa056132823c8e9497dc72.tar.gz gdb-8d5c4b7bfdfa5f2b40fa056132823c8e9497dc72.tar.bz2 |
PR ld/16192
* pe-dll.c (pe_create_runtime_relocator_reference): Zero the
newly allocated idata5 block.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r-- | ld/pe-dll.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c index bd3195f..7d5f90d 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -1,6 +1,5 @@ /* Routines to help build PEI-format DLLs (Win32 etc) - Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, - 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright 1998-2013 Free Software Foundation, Inc. Written by DJ Delorie <dj@cygnus.com> This file is part of the GNU Binutils. @@ -2591,7 +2590,7 @@ pe_create_runtime_relocator_reference (bfd *parent) BSF_NO_FLAGS, 0); bfd_set_section_size (abfd, extern_rt_rel, PE_IDATA5_SIZE); - extern_rt_rel_d = xmalloc (PE_IDATA5_SIZE); + extern_rt_rel_d = xcalloc (1, PE_IDATA5_SIZE); extern_rt_rel->contents = extern_rt_rel_d; quick_reloc (abfd, 0, BFD_RELOC_RVA, 1); |