Rename symbbol to symbol
[deliverable/binutils-gdb.git] / bfd / archive.c
index b9052135101d864082ec615053891e633f89da0c..df37996d74b41bb31c270616868cbc9787585d70 100644 (file)
@@ -1293,9 +1293,6 @@ _bfd_slurp_extended_name_table (bfd *abfd)
       amt = namedata->parsed_size;
       if (amt + 1 == 0)
        goto byebye;
-      /* PR binutils/17533: A corrupt archive can contain an invalid size.  */
-      if (amt > (bfd_size_type) bfd_get_size (abfd))
-       goto byebye;
 
       bfd_ardata (abfd)->extended_names_size = amt;
       bfd_ardata (abfd)->extended_names = (char *) bfd_zalloc (abfd, amt + 1);
@@ -1313,6 +1310,7 @@ _bfd_slurp_extended_name_table (bfd *abfd)
          if (bfd_get_error () != bfd_error_system_call)
            bfd_set_error (bfd_error_malformed_archive);
          bfd_release (abfd, (bfd_ardata (abfd)->extended_names));
+         bfd_ardata (abfd)->extended_names = NULL;
          goto byebye;
        }
 
This page took 0.023867 seconds and 4 git commands to generate.