OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f040194
)
DO NOT MERGE Initialize local variable in gatts_process_read_by_type_req
author
Hansong Zhang
<hsz@google.com>
Thu, 12 Apr 2018 18:58:49 +0000
(11:58 -0700)
committer
android-build-team Robot
<android-build-team-robot@google.com>
Tue, 8 May 2018 19:00:21 +0000
(19:00 +0000)
Bug:
73125709
Test: manual
Change-Id: I8b3346f605e0820385ea5ed7401bbee664fd15aa
(cherry picked from commit
0e34139d7fa338df6c99aaba13eb839a3dbc2548
)
stack/gatt/gatt_sr.cc
patch
|
blob
|
history
diff --git
a/stack/gatt/gatt_sr.cc
b/stack/gatt/gatt_sr.cc
index
06c9c52
..
f9e8f53
100644
(file)
--- a/
stack/gatt/gatt_sr.cc
+++ b/
stack/gatt/gatt_sr.cc
@@
-788,7
+788,8
@@
static void gatts_process_mtu_req(tGATT_TCB& tcb, uint16_t len,
void gatts_process_read_by_type_req(tGATT_TCB& tcb, uint8_t op_code,
uint16_t len, uint8_t* p_data) {
tBT_UUID uuid;
- uint16_t s_hdl, e_hdl, err_hdl = 0;
+ uint16_t s_hdl = 0, e_hdl = 0, err_hdl = 0;
+ if (len < 4) android_errorWriteLog(0x534e4554, "73125709");
tGATT_STATUS reason =
gatts_validate_packet_format(op_code, len, p_data, &uuid, s_hdl, e_hdl);