OSDN Git Service

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>
Thu, 5 Apr 2018 16:56:36 +0000 (09:56 -0700)
commitcc9c7330d1c3507d745170ae7b2e0546197b7acb
tree8fd37b1290075b9183ea363eed370f9040bd734a
parent4f044ea30f86e4552525199e1d33d0447c1961e6
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
Change-Id: Ia9b4e502fa8f8384bf9767e68f73b48a0915141b
stack/gatt/gatt_sr.cc