Commit: 2316c1ebe43c650b51911a95ed28e4a211d013ad
Parent: 45749f6aad2600e32f7f149aa9b5ffa73604535e
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-06-02 18:28:51
Tree: b17fafdffc2eacb236a6edc3f10329497af68cae

monitor: Fix crash when parsing SDP get_tid() may return NULL if bogus tid is passed. This fix following crash: Invalid write of size 1 at 0x4A0A643: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind/ vgpreload_memcheck-amd64-linux.so) by 0x4218E4: search_attr_req (sdp.c:413) by 0x42214D: sdp_packet (sdp.c:748) by 0x41ED09: l2cap_frame (l2cap.c:2632) by 0x414D51: packet_hci_acldata (packet.c:7713) by 0x415133: packet_monitor (packet.c:3332) by 0x404AEC: control_reader (control.c:911) by 0x40231A: main (main.c:197) Address 0x6 is not stack'd, malloc'd or (recently) free'd Process terminating with default action of signal 11 (SIGSEGV) Access not within mapped region at address 0x6 at 0x4A0A643: memcpy@@GLIBC_2.14 (in /usr/lib64/valgrind/ vgpreload_memcheck-amd64-linux.so) by 0x4218E4: search_attr_req (sdp.c:413) by 0x42214D: sdp_packet (sdp.c:748) by 0x41ED09: l2cap_frame (l2cap.c:2632) by 0x414D51: packet_hci_acldata (packet.c:7713) by 0x415133: packet_monitor (packet.c:3332) by 0x404AEC: control_reader (control.c:911) by 0x40231A: main (main.c:197)

Diffstat

M monitor/sdp.c | 6 +++- - -

1 files changed, 3 insertions(+), 3 deletions(-)

View Full Diff | Patch