Prevent stack overrun in binutils (issue #69)

This commit is contained in:
Wolfgang Thaller 2019-01-02 15:21:55 +01:00
parent 31cf746b9a
commit 12485f7276

View File

@ -470,16 +470,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;