mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-28 14:31:50 +00:00
Prevent stack overrun in binutils (issue #69)
This commit is contained in:
parent
b87964c355
commit
e1fb84081d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user