diff options
author | Nick Clifton <nickc@redhat.com> | 2017-07-19 14:49:12 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-07-19 14:49:12 +0100 |
commit | 909e4e716c4d77e33357bbe9bc902bfaf2e1af24 (patch) | |
tree | c406acbf9c4e7a7d0978266414275e57dcc16a40 /bfd/ChangeLog | |
parent | 62a5222fdab2acdc129b7c7d3713e7f349e26029 (diff) |
Fix use-after-free error when parsing a corrupt nested archive.
PR 21787
* archive.c (bfd_generic_archive_p): If the bfd does not have the
correct magic bytes at the start, set the error to wrong format
and clear the format selector before returning NULL.
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 b8837588d1..cc7f45c8cd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2017-07-19 Nick Clifton <nickc@redhat.com> + PR 21787 + * archive.c (bfd_generic_archive_p): If the bfd does not have the + correct magic bytes at the start, set the error to wrong format + and clear the format selector before returning NULL. + +2017-07-19 Nick Clifton <nickc@redhat.com> + PR 21786 * coff-rs6000.c (_bfd_strntol): New function. (_bfd_strntoll): New function. |