Parent: 56647d1b678bc91f6e54a903db86c2607bf92257
Author: Jukka Taimisto <jukka.taimisto@codenomicon.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2015-01-13 15:13:15
Tree: bfb24af0318b88afbc5886573894b47e22aa147f
shared/gatt: Fix divide by zero error When Read By Group Type Response or Read By Type Response is received, verify the length field value before checking if the list size is multiple of the length field. If the length field value is not checked receiving Read By Group Type Response or Read By Type Response with 0 as length field value will cause bluetoothd to die with divide by zero error.
Diffstat
| M | src/shared/gatt-helpers.c | | | 8 | ++++- - - - |
1 files changed, 4 insertions(+), 4 deletions(-)