aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2009-07-28 06:22:01 +0000
committerJan Beulich <jbeulich@novell.com>2009-07-28 06:22:01 +0000
commit4ad4f3cb145c84f47512dfde2c1ff32be30659fd (patch)
tree19b242951851e197b9933a9ca02338172abe1f97 /bfd
parent1035ad423ea11637f956e484a3f1cc4dbd493ec7 (diff)
downloadgdb-4ad4f3cb145c84f47512dfde2c1ff32be30659fd.zip
gdb-4ad4f3cb145c84f47512dfde2c1ff32be30659fd.tar.gz
gdb-4ad4f3cb145c84f47512dfde2c1ff32be30659fd.tar.bz2
bfd/
2009-07-28 Jan Beulich <jbeulich@novell.com> * archive.c (get_extended_arelt_filename): Remove redundant range check on index.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/archive.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 54697c0..f3f4533 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-28 Jan Beulich <jbeulich@novell.com>
+
+ * archive.c (get_extended_arelt_filename): Remove redundant
+ range check on index.
+
2009-07-27 Doug Kwan <dougkwan@google.com>
* elf32-arm.c (stub_hash_newfunc): Initialize field output_name.
diff --git a/bfd/archive.c b/bfd/archive.c
index 5e0fd6b..1c28ee2 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -373,7 +373,7 @@ get_extended_arelt_filename (bfd *arch, const char *name, file_ptr *originp)
{
file_ptr origin = strtol (endp + 1, NULL, 10);
- if (errno != 0 || index >= bfd_ardata (arch)->extended_names_size)
+ if (errno != 0)
{
bfd_set_error (bfd_error_malformed_archive);
return NULL;