Prevent stack overrun in binutils (issue #69)

This commit is contained in:
Wolfgang Thaller 2019-01-02 15:21:55 +01:00
parent b87964c355
commit e1fb84081d

View File

@ -468,16 +468,7 @@ _bfd_xcoff_swap_aux_in (bfd *abfd, void * ext1, int type, int in_class,
}
else
{
if (numaux > 1)
{
if (indx == 0)
memcpy (in->x_file.x_fname, ext->x_file.x_n.x_fname,
numaux * sizeof (AUXENT));
}
else
{
memcpy (in->x_file.x_fname, ext->x_file.x_n.x_fname, FILNMLEN);
}
memcpy (in->x_file.x_fname, ext->x_file.x_n.x_fname, FILNMLEN);
}
goto end;