diff mbox series

[BlueZ,1/1] fix writing out of bounds array

Message ID 20220301061445.7626-2-ihsinme@gmail.com
State New
Headers show
Series fix writing out of bounds array | expand

Commit Message

ihsinme March 1, 2022, 6:14 a.m. UTC
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/device.c b/src/device.c
index 52e2399dd..3992f9a0c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3831,7 +3831,7 @@  static int load_chrc(char *handle, char *value,
 	uint16_t properties, value_handle, handle_int;
 	char uuid_str[MAX_LEN_UUID_STR];
 	struct gatt_db_attribute *att;
-	char val_str[32];
+	char val_str[33];
 	uint8_t val[16];
 	size_t val_len;
 	bt_uuid_t uuid;