diff options
author | Nick Clifton <nickc@redhat.com> | 2018-02-06 15:48:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2018-02-06 15:48:29 +0000 |
commit | 64e234d417d5685a4aec0edc618114d9991c031b (patch) | |
tree | 1c42b76b7951a383f30e38e8de734e0ea29982fc /bfd/ChangeLog | |
parent | 422f3d3d6d5713bf9235b7b7696818a70b3b578d (diff) | |
download | gdb-64e234d417d5685a4aec0edc618114d9991c031b.zip gdb-64e234d417d5685a4aec0edc618114d9991c031b.tar.gz gdb-64e234d417d5685a4aec0edc618114d9991c031b.tar.bz2 |
Prevent attempts to call strncpy with a zero-length field by chacking the size of debuglink sections.
PR 22794
* opncls.c (bfd_get_debug_link_info_1): Check the size of the
section before attempting to read it in.
(bfd_get_alt_debug_link_info): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 72e9373..584f087 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2018-02-06 Nick Clifton <nickc@redhat.com> + + PR 22794 + * opncls.c (bfd_get_debug_link_info_1): Check the size of the + section before attempting to read it in. + (bfd_get_alt_debug_link_info): Likewise. + 2018-02-06 Paul Carroll <pcarroll@codesourcery.com> * bfd/dwarf2.c (find_abstract_name): Modified to return file and |