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)
committerRohit Yengisetty <rngy@google.com>
Wed, 18 Apr 2018 00:47:03 +0000 (17:47 -0700)
commit2674d23531a7bc74ef36751992a995484907fa88
tree786060f17cc9ac3bdbab4327ddc1279538dc6a19
parentdc85138e50f621258a6e5f7fdfaeee09dd9ec1f6
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 810e669d7ae55dd50ec1ea159cd87c3f1cdf5695)
stack/gatt/gatt_sr.c