diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-03 23:41:21 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-03 23:41:21 +0000 |
commit | eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7 (patch) | |
tree | b5779ec03aaaf38aa892b54155d294a706f28d07 /bfd | |
parent | b4aa9232b7ebe65770150487f712529624c8075e (diff) | |
download | gdb-eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7.zip gdb-eb00922a32c750dea9c7f85e9225e3fd3fe5a2d7.tar.gz 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')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/archive.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 36908e4..cdddd21 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 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) |