public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: gary@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  gbenson/rtld-probes: 1) lm_info can be NULL. 2) Size was wrong.
Date: Fri, 17 May 2013 10:35:00 -0000	[thread overview]
Message-ID: <20130517103540.4850.qmail@sourceware.org> (raw)

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.


                 reply	other threads:[~2013-05-17 10:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130517103540.4850.qmail@sourceware.org \
    --to=gary@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).