Parent: c79d28622026749218d4ecda8fea2bf2653abfe6
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-06-17 13:49:17
Tree: b0c097388e684c60b00fd4f55ca2cd8bc4e1be2a
emulator: Fix uninitialised memory usage on inquiry 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==
Diffstat
| M | emulator/btdev.c | | | 3 | +++ |
1 files changed, 3 insertions(+), 0 deletions(-)