OSDN Git Service

DO NOT MERGE Handle bad packet length in gatts_process_read_req
authorStanley Tng <stng@google.com>
Thu, 5 Apr 2018 16:54:13 +0000 (09:54 -0700)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Tue, 8 May 2018 19:00:13 +0000 (19:00 +0000)
commitc345851daee8cc01fdf0639e3f039143a1ae7d4f
treec63eff3c4cb68d543c94e01a3f575b0a5f42e6e1
parent0ce2d0bdc358af779c0e4908c0e4c62be7f87385
DO NOT MERGE Handle bad packet length in gatts_process_read_req

Added error check and handling code in gatts_process_read_req to
make sure that the packet length is correct.
Please note that there is another earlier CL that is reverted and this
is the updated one.

Bug: 73172115
Test: Run the test program, poc, that was attached in the bug report
Merged-In: Ia9b4e502fa8f8384bf9767e68f73b48a0915141b
Change-Id: Ia9b4e502fa8f8384bf9767e68f73b48a0915141b
(cherry picked from commit cc9c7330d1c3507d745170ae7b2e0546197b7acb)
(cherry picked from commit 16f4c21be5bd0ea1968eee8a0f00648b1e326253)
stack/gatt/gatt_sr.cc