mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
(bfd_sym_parse_contained_variables_table_entry_v32): Avoid call to memcpy with
a size of 0.
This commit is contained in:
@ -41,6 +41,9 @@
|
|||||||
* elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
|
* elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
|
||||||
to protect the declaration of this array.
|
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>
|
2005-02-12 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-ppc.c (toc_adjusting_stub_needed): Return true for
|
* elf64-ppc.c (toc_adjusting_stub_needed): Return true for
|
||||||
|
@ -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)
|
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);
|
memcpy (&entry->entry.address.lastruct.la, buf + 10, BFD_SYM_CVTE_SCA);
|
||||||
|
#endif
|
||||||
entry->entry.address.lastruct.la_kind = buf[23];
|
entry->entry.address.lastruct.la_kind = buf[23];
|
||||||
}
|
}
|
||||||
else if (entry->entry.la_size == BFD_SYM_CVTE_BIG_LA)
|
else if (entry->entry.la_size == BFD_SYM_CVTE_BIG_LA)
|
||||||
|
Reference in New Issue
Block a user