asan: buffer overflow in vms-alpha.c
* vms-alpha.c (evax_bfd_print_dst): Sanity check another place printing strings.
This commit is contained in:
parent
d12b8d620c
commit
6e73172988
1 changed files with 3 additions and 1 deletions
|
@ -7390,7 +7390,9 @@ evax_bfd_print_dst (struct bfd *abfd, unsigned int dst_size, FILE *file)
|
|||
fprintf (file, _("standard data: %s\n"),
|
||||
evax_bfd_get_dsc_name (type));
|
||||
evax_bfd_print_valspec (buf, len, 4, file);
|
||||
fprintf (file, _(" name: %.*s\n"), buf[5], buf + 6);
|
||||
if (len > 6)
|
||||
fprintf (file, _(" name: %.*s\n"),
|
||||
buf[5] > len - 6 ? len - 6 : buf[5], buf + 6);
|
||||
break;
|
||||
case DST__K_MODBEG:
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue