]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix access violation when disassembling a corrupt VMS binary.
authorNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2017 11:31:07 +0000 (12:31 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 19 Jun 2017 11:31:07 +0000 (12:31 +0100)
commit72e84f969481f52daf6741c6bb4d0e92f9668389
tree92a0bf7a2384b737565c3115d7d58bca57d84b28
parent875ffa3edc5f27f0ad5e3d95d96782832edad00e
Fix access violation when disassembling a corrupt VMS binary.

PR 21615
* vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for
gsd_size.  Check that there are enough bytes remaining to read the
type and size of the next egsd.  Check that the size of the egsd
does not exceed the size of the record.
bfd/ChangeLog
bfd/vms-alpha.c