bfd/
authorJan Beulich <jbeulich@novell.com>
Tue, 28 Jul 2009 06:22:01 +0000 (06:22 +0000)
committerJan Beulich <jbeulich@novell.com>
Tue, 28 Jul 2009 06:22:01 +0000 (06:22 +0000)
2009-07-28  Jan Beulich  <jbeulich@novell.com>

* archive.c (get_extended_arelt_filename): Remove redundant
range check on index.

bfd/ChangeLog
bfd/archive.c

index 54697c03cb5c67b73f2611cd0d8188af39663a27..f3f4533a19b9c088d1351bd78212b1e7ac224ca6 100644 (file)
@@ -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.
index 5e0fd6b97939ebcc7156c1788626936320597023..1c28ee2e75af5565304ac1a47f5ea4f4015c4724 100644 (file)
@@ -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;