Prevent attempts to call strncpy with a zero-length field by chacking the size of...
authorNick Clifton <nickc@redhat.com>
Tue, 6 Feb 2018 15:48:29 +0000 (15:48 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 6 Feb 2018 15:48:29 +0000 (15:48 +0000)
commit64e234d417d5685a4aec0edc618114d9991c031b
tree1c42b76b7951a383f30e38e8de734e0ea29982fc
parent422f3d3d6d5713bf9235b7b7696818a70b3b578d
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.
bfd/ChangeLog
bfd/opncls.c