asan: Buffer overflow in evax_bfd_print_dst
authorAlan Modra <amodra@gmail.com>
Thu, 17 Mar 2022 07:25:48 +0000 (17:55 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Mar 2022 11:02:44 +0000 (21:32 +1030)
commit98c445c0b98c8da183e9bfad32df3936a8d7fd35
treecede8981489a2eb4535ef688a8260546938cce45
parent0c6a3cd13585be7d17d5ee76ac9c4404910d2b17
asan: Buffer overflow in evax_bfd_print_dst

With "name" a char*, the length at name[0] might be negative, escaping
buffer limit checks.

* vms-alpha.c (evax_bfd_print_dst): Make name an unsigned char*.
(evax_bfd_print_emh): Likewise.
bfd/vms-alpha.c