Commit: 813b8e6737ba0c43255979b09a089c44b757a556
Parent: 5deaad18c2fe291277974aa5d22eaff9732dad4e
Author: Steve Brown <sbrown@cortland.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-12-12 13:50:46
Tree: 47c749d8c89189d47b31b0b235c6c5c1688ccb34

mesh: Segmentation fails in gatt.c:pipe_write() If the first command output in a new connection exceeds 20 bytes, mesh_gatt_write sets the SAR to FIRST as the write_mtu is initially 0 and the default is GATT_MTU-3 (20). When pipe_write gets called, a new larger write_mtu has been set, but the SAR is still set to FIRST. It's assumed that data->gatt_len > max_len. However, it's not which causes lots of bogus output.

Diffstat

M mesh/gatt.c | 141 ++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 18 insertions(+), 123 deletions(-)

View Full Diff | Patch