Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
packages_apps_Bluetooth
Commits
3987efa9
Commit
3987efa9
authored
11 years ago
by
Matthew Xie
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "LE: Fix stack crash on invalid descriptor write request" into klp-dev
parents
cd68000c
460d53a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
jni/com_android_bluetooth_gatt.cpp
jni/com_android_bluetooth_gatt.cpp
+5
-0
No files found.
jni/com_android_bluetooth_gatt.cpp
View file @
3987efa9
...
...
@@ -991,6 +991,11 @@ static void gattClientWriteDescriptorNative(JNIEnv* env, jobject object,
{
if
(
!
sGattIf
)
return
;
if
(
value
==
NULL
)
{
warn
(
"gattClientWriteDescriptorNative() ignoring NULL array"
);
return
;
}
btgatt_srvc_id_t
srvc_id
;
srvc_id
.
id
.
inst_id
=
(
uint8_t
)
service_id_inst_id
;
srvc_id
.
is_primary
=
(
service_type
==
BTGATT_SERVICE_TYPE_PRIMARY
?
1
:
0
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment