Fix potential illegal memroy access when using a build-id note with a negative size.
authorNick Clifton <nickc@redhat.com>
Wed, 20 Jun 2018 15:30:05 +0000 (16:30 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Jun 2018 15:30:05 +0000 (16:30 +0100)
commit6077de0645ce12a9c4e99f8839a846b42a535b0a
tree475cbc867cc962b2f7f4b4f055d220acc7e86994
parent1d554008b3747c6ccaa8e3a08cc797cfade242f3
Fix potential illegal memroy access when using a build-id note with a negative size.

PR 23316
* opncls.c (get_build_id): Check for a negative or excessive data
size in the build-id note.
bfd/ChangeLog
bfd/opncls.c