All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gonglei <arei.gonglei@huawei.com>
To: zhanghailiang <zhang.zhanghailiang@huawei.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
	stefanha@redhat.com, peter.huangpeng@huawei.com
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] l2tpv3: fix possible double free
Date: Fri, 14 Nov 2014 11:03:33 +0800	[thread overview]
Message-ID: <54657105.50802@huawei.com> (raw)
In-Reply-To: <1415929163-12184-1-git-send-email-zhang.zhanghailiang@huawei.com>

On 2014/11/14 9:39, zhanghailiang wrote:

> freeaddrinfo(result) does not assign result = NULL, after frees it.
> There will be a double free when it goes error case.
> It is reported by covertiy.
> 
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> ---
>  net/l2tpv3.c | 1 +
>  1 file changed, 1 insertion(+)


Reviewed-by: Gonglei <arei.gonglei@huawei.com>



WARNING: multiple messages have this Message-ID (diff)
From: Gonglei <arei.gonglei@huawei.com>
To: zhanghailiang <zhang.zhanghailiang@huawei.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
	stefanha@redhat.com, peter.huangpeng@huawei.com
Subject: Re: [Qemu-devel] [PATCH] l2tpv3: fix possible double free
Date: Fri, 14 Nov 2014 11:03:33 +0800	[thread overview]
Message-ID: <54657105.50802@huawei.com> (raw)
In-Reply-To: <1415929163-12184-1-git-send-email-zhang.zhanghailiang@huawei.com>

On 2014/11/14 9:39, zhanghailiang wrote:

> freeaddrinfo(result) does not assign result = NULL, after frees it.
> There will be a double free when it goes error case.
> It is reported by covertiy.
> 
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> ---
>  net/l2tpv3.c | 1 +
>  1 file changed, 1 insertion(+)


Reviewed-by: Gonglei <arei.gonglei@huawei.com>

  reply	other threads:[~2014-11-14  3:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14  1:39 [Qemu-trivial] [PATCH] l2tpv3: fix possible double free zhanghailiang
2014-11-14  1:39 ` [Qemu-devel] " zhanghailiang
2014-11-14  3:03 ` Gonglei [this message]
2014-11-14  3:03   ` Gonglei
2014-11-14  8:45 ` [Qemu-trivial] " Paolo Bonzini
2014-11-14  8:45   ` [Qemu-devel] " Paolo Bonzini
2014-11-17  5:13   ` [Qemu-trivial] " zhanghailiang
2014-11-17  5:13     ` [Qemu-devel] " zhanghailiang

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=54657105.50802@huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=zhang.zhanghailiang@huawei.com \
    /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.