Diff between 962e1ac24b9137072d244943949bbdb86391433f and fc62b25e9ef6436941fa388cbdcc547315cd1d80

Changed Files

File Additions Deletions Status
android/gatt.c +3 -0 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index 210058b..772c253 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4394,6 +4394,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;