Fix address violation parsing a corrupt SOM binary.
authorNick Clifton <nickc@redhat.com>
Thu, 22 Jun 2017 09:33:56 +0000 (10:33 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Jun 2017 09:33:56 +0000 (10:33 +0100)
commitd19237d98d5c227bc33693057eb466702386cdfb
treefb42ede315655bb10531d4c24a3a594f08883408
parente7d39ed3e0ca36d0dbd6ddd4cb955aa73b0974e6
Fix address violation parsing a corrupt SOM binary.

PR binutils/21649
* som.c (setup_sections): NUL terminate the space_strings buffer.
Check that the space.name field does not index beyond the end of
the space_strings buffer.
bfd/ChangeLog
bfd/som.c