Commit: ee676b8615ae64132564e86babbab61c14481ce2
Parent: 52e73ddca4f241562fc7cbd227de480ae5408b05
Author: Romain Izard <romain.izard.pro@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-01-26 17:49:11
Tree: f6ca4ee3c6393960b0f4cca0cf469b72e7830eb6

shared/gatt-server: Avoid memory corruption When sending notification and indication data, the size of the allocated packet is the smallest of the MTU and the payload size. The copy procedure uses the payload size in all cases, which can lead to memory corruption. Use the packet size instead.

Diffstat

M src/shared/gatt-server.c | 4 ++- -

1 files changed, 2 insertions(+), 2 deletions(-)

View Full Diff | Patch