From: Bruna Moreira <bruna.moreira@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Bruna Moreira <bruna.moreira@openbossa.org>
Subject: [PATCH] Fix invalid read after list concatenation
Date: Thu, 3 Feb 2011 14:43:48 -0400 [thread overview]
Message-ID: <1296758628-15202-1-git-send-email-bruna.moreira@openbossa.org> (raw)
g_slist_concat uses the items from second list directly so they should
not be freed.
---
attrib/gatt.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/attrib/gatt.c b/attrib/gatt.c
index f3b513e..20bb96f 100644
--- a/attrib/gatt.c
+++ b/attrib/gatt.c
@@ -121,7 +121,6 @@ static void primary_by_uuid_cb(guint8 status, const guint8 *ipdu,
dp->primaries = g_slist_concat(dp->primaries, ranges);
last = g_slist_last(ranges);
- g_slist_free(ranges);
range = last->data;
if (range->end == 0xffff)
--
1.7.0.4
next reply other threads:[~2011-02-03 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 18:43 Bruna Moreira [this message]
2011-02-04 4:55 ` [PATCH] Fix invalid read after list concatenation Johan Hedberg
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=1296758628-15202-1-git-send-email-bruna.moreira@openbossa.org \
--to=bruna.moreira@openbossa.org \
--cc=linux-bluetooth@vger.kernel.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