public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  gbenson/rtld-probes: 1) lm_info can be NULL. 2) Size was wrong.
@ 2013-05-17 10:35 gary
  0 siblings, 0 replies; only message in thread
From: gary @ 2013-05-17 10:35 UTC (permalink / raw)
  To: archer-commits

The branch, gbenson/rtld-probes has been updated
       via  bf30bd84f8d2f12d1d7a5695aa48929808fae88f (commit)
      from  ed85b65d8fb34d863d9a2cb816223dba457d9bc3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit bf30bd84f8d2f12d1d7a5695aa48929808fae88f
Author: Gary Benson <gbenson@redhat.com>
Date:   Fri May 17 11:35:32 2013 +0100

    1) lm_info can be NULL. 2) Size was wrong.

-----------------------------------------------------------------------

Summary of changes:
 gdb/solib-svr4.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

First 500 lines of diff:
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 6b4bdb0..8de10e4 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1086,7 +1086,6 @@ svr4_free_library_list (void *p_list)
 static struct so_list *
 svr4_copy_library_list (struct so_list *src)
 {
-  struct link_map_offsets *lmo = svr4_fetch_link_map_offsets ();
   struct so_list *dst = NULL;
   struct so_list **link = &dst;
 
@@ -1098,8 +1097,11 @@ svr4_copy_library_list (struct so_list *src)
 
       memcpy (new, src, sizeof (struct so_list));
 
-      new->lm_info = xmalloc (lmo->link_map_size);
-      memcpy (new->lm_info, src->lm_info, lmo->link_map_size);
+      if (src->lm_info != NULL)
+	{
+	  new->lm_info = xmalloc (sizeof (struct lm_info));
+	  memcpy (new->lm_info, src->lm_info, sizeof (struct lm_info));
+	}
 
       new->next = NULL;
       *link = new;


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-17 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-17 10:35 [SCM] gbenson/rtld-probes: 1) lm_info can be NULL. 2) Size was wrong gary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).