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

@@ -468,19 +468,10 @@ _bfd_xcoff_swap_aux_in (bfd *abfd, void * ext1, int type, int in_class,
in->x_file.x_n.x_offset =
H_GET_32 (abfd, ext->x_file.x_n.x_n.x_offset);
}
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);
}
}
goto end;
/* RS/6000 "csect" auxents */