All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] smart-messaging: set agent to NULL after free
Date: Wed, 02 Feb 2011 13:24:47 -0600	[thread overview]
Message-ID: <4D49AF7F.70107@gmail.com> (raw)
In-Reply-To: <1296672812-2983-1-git-send-email-lucas.demarchi@profusion.mobi>

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi Lucas,

On 02/02/2011 12:53 PM, Lucas De Marchi wrote:
> If agent is not set to NULL after it's freed, the following situation
> would not work:
> 
> smart_messaging_register_agent()
> smart_messaging_unregister_agent()
> smart_messaging_register_agent()
> 
> And this one could potentially crash oFono:
> 
> smart_messaging_register_agent()
> smart_messaging_unregister_agent()
> smart_messaging_unregister_agent()
> ---
>  plugins/smart-messaging.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

      reply	other threads:[~2011-02-02 19:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-02 18:53 [PATCH] smart-messaging: set agent to NULL after free Lucas De Marchi
2011-02-02 19:24 ` Denis Kenzior [this message]

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=4D49AF7F.70107@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.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 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.