mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Fix memory access violations triggered by running dlltool on corrupt binaries.
PR binutils/17512 * dlltool.c (identify_search_archive): If the last archive was the same as the current archive, terminate the loop. * pdp11.c (aout_get_external_symbols): Return false if there are no symbols.
This commit is contained in:
@ -3589,7 +3589,15 @@ identify_search_archive (bfd * abfd,
|
||||
}
|
||||
|
||||
if (last_arfile != NULL)
|
||||
bfd_close (last_arfile);
|
||||
{
|
||||
bfd_close (last_arfile);
|
||||
/* PR 17512: file: 8b2168d4. */
|
||||
if (last_arfile == arfile)
|
||||
{
|
||||
last_arfile = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
last_arfile = arfile;
|
||||
}
|
||||
|
Reference in New Issue
Block a user