all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: emacs-devel@gnu.org
Subject: Re: dbusbind.c SIGSEGV fix and minor cleanup
Date: Fri, 21 Mar 2008 17:27:07 +0100	[thread overview]
Message-ID: <87hcf0kppg.fsf@gmx.de> (raw)
In-Reply-To: <87wso0nz34.fsf@localhorst.mine.nu> (David Hansen's message of "Tue, 18 Mar 2008 10:47:11 +0100")

David Hansen <david.hansen@gmx.net> writes:

> Hello,

Hi,

> emacs crashes (in `strcpy') when receiving dbus messages with some empty
> content.
>
> The attached patch fixes this.  Also there is no need to copy the
> strings.  This is already be done by `build_string'.

The patch looks OK to me.

One could argue, that in case interface or member is NULL, this could be
regarded as wildcards, and all registered functions which match
otherwise shall be applied. But I agree with you, that only messages,
which are sent to a specified interface and its member, shall be taken.

One minor point: before "RETURN_UNGCPRO (Qnil)" you might call
"dbus_message_unref (dmessage)" for freeing dmessage. Or you simply jump
to the end, where it is done already.

Please commit the patch, or (in case you have no write access in CVS)
send the ChangeLog entry; I'll do it then.

> David

Thanks, and best regards, Michael.




  parent reply	other threads:[~2008-03-21 16:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-18  9:47 dbusbind.c SIGSEGV fix and minor cleanup David Hansen
2008-03-21  2:00 ` David Hansen
2008-03-21 16:27 ` Michael Albinus [this message]
2008-03-22 12:55   ` David Hansen
2008-03-23 16:55     ` Michael Albinus

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=87hcf0kppg.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.