2011-03-03 Michael Snyder <msnyder@vmware.com>

* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
This commit is contained in:
Michael Snyder
2011-03-03 23:41:21 +00:00
parent b4aa9232b7
commit eb00922a32
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-03-03 Michael Snyder <msnyder@vmware.com>
* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
2011-03-03 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS

View File

@ -1220,7 +1220,9 @@ _bfd_slurp_extended_name_table (bfd *abfd)
/* FIXME: Formatting sucks here, and in case of failure of BFD_READ,
we probably don't want to return TRUE. */
bfd_seek (abfd, bfd_ardata (abfd)->first_file_filepos, SEEK_SET);
if (bfd_seek (abfd, bfd_ardata (abfd)->first_file_filepos, SEEK_SET) != 0)
return FALSE;
if (bfd_bread (nextname, 16, abfd) == 16)
{
if (bfd_seek (abfd, (file_ptr) -16, SEEK_CUR) != 0)