linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Anderson Lizardo <anderson.lizardo@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ] emulator: Fix uninitialised memory usage on inquiry
Date: Mon, 17 Jun 2013 13:51:32 +0300	[thread overview]
Message-ID: <20130617105132.GA22357@x220.ger.corp.intel.com> (raw)
In-Reply-To: <1370464516-5706-1-git-send-email-anderson.lizardo@openbossa.org>

Hi Lizardo,

On Wed, Jun 05, 2013, Anderson Lizardo wrote:
> This happens when using "btvirt -l2" and running "discoverable on" on
> hci1 and "scan on" on hci0 using bluetoothctl:
> 
> ==1870== Syscall param write(buf) points to uninitialised byte(s)
> ==1870==    at 0x4114443: __write_nocancel (syscall-template.S:82)
> ==1870==    by 0x804B503: send_packet (btdev.c:478)
> ==1870==    by 0x804B599: send_event (btdev.c:503)
> ==1870==    by 0x804B8C0: inquiry_complete (btdev.c:589)
> ==1870==    by 0x804C538: default_cmd (btdev.c:881)
> ==1870==    by 0x804E5DE: process_cmd (btdev.c:1559)
> ==1870==    by 0x804E646: btdev_receive_h4 (btdev.c:1577)
> ==1870==    by 0x804A487: vhci_read_callback (vhci.c:82)
> ==1870==    by 0x804923E: mainloop_run (mainloop.c:142)
> ==1870==    by 0x8048FD4: main (main.c:145)
> ==1870==  Address 0x41e4d0f is 15 bytes inside a block of size 258
> alloc'd
> ==1870==    at 0x402B56C: malloc (vg_replace_malloc.c:270)
> ==1870==    by 0x804B531: send_event (btdev.c:490)
> ==1870==    by 0x804B8C0: inquiry_complete (btdev.c:589)
> ==1870==    by 0x804C538: default_cmd (btdev.c:881)
> ==1870==    by 0x804E5DE: process_cmd (btdev.c:1559)
> ==1870==    by 0x804E646: btdev_receive_h4 (btdev.c:1577)
> ==1870==    by 0x804A487: vhci_read_callback (vhci.c:82)
> ==1870==    by 0x804923E: mainloop_run (mainloop.c:142)
> ==1870==    by 0x8048FD4: main (main.c:145)
> ==1870==
> ---
>  emulator/btdev.c |    3 +++
>  1 file changed, 3 insertions(+)

Applied. Thanks.

Johan

      reply	other threads:[~2013-06-17 10:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 20:35 [PATCH BlueZ] emulator: Fix uninitialised memory usage on inquiry Anderson Lizardo
2013-06-17 10:51 ` Johan Hedberg [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=20130617105132.GA22357@x220.ger.corp.intel.com \
    --to=johan.hedberg@gmail.com \
    --cc=anderson.lizardo@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;
as well as URLs for NNTP newsgroup(s).