Remove an abort in the bfd library and add a check for an integer overflow when mappi...
authorNick Clifton <nickc@redhat.com>
Fri, 30 Nov 2018 11:43:12 +0000 (11:43 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 30 Nov 2018 11:43:12 +0000 (11:43 +0000)
commitbeab453223769279cc1cef68a1622ab8978641f7
treeb93c05695f7ee792cef528584a80e8f4a13bc9aa
parentba85c15dabe144e4bcee5a1b388b32bee10729e1
Remove an abort in the bfd library and add a check for an integer overflow when mapping sections to segments.

PR 23932
* elf.c (IS_CONTAINED_BY_LMA): Add a check for a negative section
size.
(rewrite_elf_program_header): If no sections are mapped into a
segment return an error.
bfd/ChangeLog
bfd/elf.c