Fixes a bug introduced by the new ranges checks on COFF symbol tables.
[deliverable/binutils-gdb.git] / bfd / coffgen.c
index b1ab56e2e14f3b57ce254942a2f276510c9443e9..2cd7b09c6a21774872d9f25c984f2d60e20904ac 100644 (file)
@@ -1808,7 +1808,7 @@ coff_get_normalized_symtab (bfd *abfd)
       if (symbol_ptr->u.syment.n_sclass == C_FILE
          && symbol_ptr->u.syment.n_numaux > 0
          && raw_src + symesz + symbol_ptr->u.syment.n_numaux
-         * sizeof (union internal_auxent) >= raw_end)
+         * symesz > raw_end)
        {
          bfd_release (abfd, internal);
          return NULL;
@@ -1827,7 +1827,6 @@ coff_get_normalized_symtab (bfd *abfd)
            }
 
          raw_src += symesz;
-
          bfd_coff_swap_aux_in (abfd, (void *) raw_src,
                                symbol_ptr->u.syment.n_type,
                                symbol_ptr->u.syment.n_sclass,
This page took 0.026789 seconds and 4 git commands to generate.