bluez/monitor
Szymon Janc 2316c1ebe4 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)
2014-06-02 18:28:51 +03:00
..
analyze.c monitor: Add support for reading Apple Packet Logger traces 2014-02-12 11:54:02 -08:00
analyze.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
bt.h monitor: Add structure for LE remote connection parameter request event 2014-02-28 20:23:51 -08:00
btsnoop.c monitor: Use shared btsnoop code wherever possible 2014-02-11 11:13:59 -08:00
btsnoop.h monitor: Use shared btsnoop code wherever possible 2014-02-11 11:13:59 -08:00
control.c monitor: Fix User Passkey Request name 2014-06-01 22:52:24 +03:00
control.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
crc.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
crc.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
display.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
display.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
ellisys.c monitor: Use shared btsnoop code wherever possible 2014-02-11 11:13:59 -08:00
ellisys.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
hcidump.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
hcidump.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
hwdb.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
hwdb.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
keys.c monitor: Free entries in list of idenity resolving key data 2014-02-17 01:02:33 -08:00
keys.h monitor: Add support for resolving random addresses 2014-02-17 00:23:29 -08:00
l2cap.c Replace bt_get_le64() by get_le64() 2014-03-21 10:41:42 +02:00
l2cap.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
ll.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
ll.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
lmp.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
lmp.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
main.c monitor: Add support for resolving random addresses 2014-02-17 00:23:29 -08:00
mainloop.c monitor: Use miliseconds instead of seconds in the timeout 2014-03-05 14:04:54 +01:00
mainloop.h monitor: Use miliseconds instead of seconds in the timeout 2014-03-05 14:04:54 +01:00
packet.c monitor: Update decoding of Apple manufacturer advertising data 2014-03-21 22:28:01 -07:00
packet.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
rfcomm.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
sdp.c monitor: Fix crash when parsing SDP 2014-06-02 18:28:51 +03:00
sdp.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
uuid.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
uuid.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
vendor.c monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00
vendor.h monitor: Update copyright and license details 2014-02-11 10:59:14 -08:00