(bfd_sym_parse_contained_variables_table_entry_v32): Avoid call to memcpy with
authorNick Clifton <nickc@redhat.com>
Fri, 11 Feb 2005 17:22:47 +0000 (17:22 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 Feb 2005 17:22:47 +0000 (17:22 +0000)
a size of 0.

bfd/ChangeLog
bfd/xsym.c

index dd70bc069dc3190136798603f61b0dcc427ea495..7ab3e78329cceb9e8d8ac7252c1a5d3031d8f243 100644 (file)
@@ -41,6 +41,9 @@
        * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
        to protect the declaration of this array.
 
+       * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
+       Avoid call to memcpy with a size of 0.
+
 2005-02-12  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
index 5f3cc1d019725f4ad086a3b6a641ba2b75397d5c..247e5c352c042f8ad4528217ac73d6721ba0d8e7 100644 (file)
@@ -464,7 +464,9 @@ bfd_sym_parse_contained_variables_table_entry_v32 (buf, len, entry)
        }
       else if (entry->entry.la_size <= BFD_SYM_CVTE_SCA)
        {
+#if BFD_SYM_CVTE_SCA > 0
          memcpy (&entry->entry.address.lastruct.la, buf + 10, BFD_SYM_CVTE_SCA);
+#endif
          entry->entry.address.lastruct.la_kind = buf[23];
        }
       else if (entry->entry.la_size == BFD_SYM_CVTE_BIG_LA)
This page took 0.029956 seconds and 4 git commands to generate.