Fix nm potential buffer overflow
authorAlan Modra <amodra@gmail.com>
Mon, 26 Sep 2016 08:25:08 +0000 (17:55 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Sep 2016 08:32:44 +0000 (18:02 +0930)
commit7358f4cbaf3c6fafbbbc9703a5e2884470643bfa
tree93a9d9e5ee6ee789b6f4624536e3530c4279dc88
parentedeeb6024373d865284903f0b96b9811afde0441
Fix nm potential buffer overflow

get_coff_symbol_type had a potenial buffer overflow even with
untranslated messages.

* nm.c (get_elf_symbol_type): Don't use sprintf with translated
strings, use asprintf instead.
(get_coff_symbol_type): Likewise.
binutils/ChangeLog
binutils/nm.c