+2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
+
2011-07-22 Pedro Alves <pedro@codesourcery.com>
* i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
OBJFILE the symbol is undefined and the objfile having NAME defined
may not yet have been loaded. */
- if (string_buffer_size < name_len + got_suffix_len)
+ if (string_buffer_size < name_len + got_suffix_len + 1)
{
string_buffer_size = 2 * (name_len + got_suffix_len);
string_buffer = xrealloc (string_buffer, string_buffer_size);
}
memcpy (string_buffer, name, name_len);
memcpy (&string_buffer[name_len], SYMBOL_GOT_PLT_SUFFIX,
- got_suffix_len);
+ got_suffix_len + 1);
msym = record_minimal_symbol (string_buffer, name_len + got_suffix_len,
1, address, mst_slot_got_plt, got_plt,