aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-03 23:41:21 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-03 23:41:21 +0000
commiteb00922a32c750dea9c7f85e9225e3fd3fe5a2d7 (patch)
treeb5779ec03aaaf38aa892b54155d294a706f28d07 /bfd/archive.c
parentb4aa9232b7ebe65770150487f712529624c8075e (diff)
downloadfsf-binutils-gdb-eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7.zip
fsf-binutils-gdb-eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7.tar.gz
fsf-binutils-gdb-eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7.tar.bz2
2011-03-03 Michael Snyder <msnyder@vmware.com>
* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 5abb25a..a664300 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -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)