Commit: 64daf61e43d644023ff16ecbc57fa25516eb34da
Parent: dd27e2dceb7a6654c470bc5c3d13b3076ba21591
Author: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-06-10 14:34:20
Tree: e3a554a73b5bcb871a81e7f80e17a223bb8a40d3

android/gatt: Dont process pending requests if queue is empty Processing empty queue can result with crash: bluetoothd[1670]: external/bluetooth/bluez/attrib/gattrib.c:g_attrib_ref() 0x6035878: ref=2 02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== Invalid read of size 1 02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== at 0x12151E: send_dev_pending_response (gatt.c:3914) 02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== by 0x121B33: process_dev_pending_requests (gatt.c:4228) 02-23 21:36:05.650 I/bluetoothd( 1669): ==1670== by 0x123955: att_handler (gatt.c:5049)

Diffstat

M android/gatt.c | 3 +++

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

View Full Diff | Patch