Hi Marcin, On Thursday 22 of May 2014 12:33:55 Marcin Kraglak wrote: > Return ATT_ECODE_INVALID_HANDLE if range is incorrect. It repairs > TC_GAR_SR_BI_08_C test case. > --- > android/gatt.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/android/gatt.c b/android/gatt.c > index 89da60d..dae0df3 100644 > --- a/android/gatt.c > +++ b/android/gatt.c > @@ -4404,6 +4404,9 @@ static uint8_t read_by_type(const uint8_t *cmd, uint16_t cmd_len, > if (!len) > return ATT_ECODE_INVALID_PDU; > > + if (start > end) > + return ATT_ECODE_INVALID_HANDLE; > + > q = queue_new(); > if (!q) > return ATT_ECODE_INSUFF_RESOURCES; > Applied, thanks. -- Best regards, Szymon Janc -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html