diff options
author | Nick Clifton <nickc@redhat.com> | 2014-10-29 20:58:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-10-29 20:58:13 +0000 |
commit | e5b470e24ce448a56230137a37d3b17299593041 (patch) | |
tree | f0b7420fd5b229c7003fa61727985d60a503d577 | |
parent | f60325bea599bab4cb721c6e797bc6b908fa616c (diff) | |
download | fsf-binutils-gdb-e5b470e24ce448a56230137a37d3b17299593041.zip fsf-binutils-gdb-e5b470e24ce448a56230137a37d3b17299593041.tar.gz fsf-binutils-gdb-e5b470e24ce448a56230137a37d3b17299593041.tar.bz2 |
Fixes another memory corruption bug introduced by patches for PR 17512.
* elf.c (bfd_section_from_shdr): Fix heap use after free memory
leak.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eebe6bd..a5790a5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,6 +1,11 @@ +2014-10-29 Nick Clifton <nickc@redhat.com> + + * elf.c (bfd_section_from_shdr): Fix heap use after free memory + leak. + 2014-10-29 Dennis Brueni <dbrueni@slickedit.com> - * elf.c (elfcore_write_lwpstatus): fix typo in call to memcpy + * elf.c (elfcore_write_lwpstatus): Fix typo in call to memcpy. 2014-10-28 Nick Clifton <nickc@redhat.com> @@ -2106,7 +2106,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex) fail: ret = FALSE; success: - if (sections_being_created) + if (sections_being_created && sections_being_created_abfd == abfd) sections_being_created [shindex] = FALSE; if (-- nesting == 0) { |