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)
committerStanley Tng <stng@google.com>
Mon, 9 Apr 2018 16:36:21 +0000 (09:36 -0700)
commit810e669d7ae55dd50ec1ea159cd87c3f1cdf5695
treecbc93a4155384368ca3a9c7ec0f1fbc259522992
parent4ae5bc4f81e222341fba676ef400cf321f76e243
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)
stack/gatt/gatt_sr.c