OSDN Git Service

Fix payload size for GATT Read by type request
authorSubramanian Srinivasan <subrsrin@codeaurora.org>
Fri, 27 May 2016 23:32:55 +0000 (16:32 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 7 Jun 2016 23:54:43 +0000 (23:54 +0000)
commit7da98621a4dfa8196b8d20e8955ad508f540e5d9
tree53faa32f6c0de359412fc179deef9d8845d25017
parent3021c5a5aac9760e8c4885cbf9c220d1b04dbdb3
Fix payload size for GATT Read by type request

Payload size for GATT Read by type request for UUID32 and UUID128
are incorrectly allocated. This leads to memory overflow when
Read by type request is sent for them and eventually results
in crash during free. This change makes sure that the payload
can accomodate upto 128 bit UUID.

This crash is observed while running TC_GAR_CL_BV_03_C Qual test
case.

Bug: 29011042
Change-Id: Ib2b41b769b394670099f4549f204e2972f7df876
stack/gatt/att_protocol.c