Skip to contentSkip to conversation

fix writing out of bounds array

PATCH In review ihsinme 2 participants 3 messages Mar 1, 2022 Bluetooth drivers

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/1 fix writing out of bounds array

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/device.c +1 -1
index 52e2399dd..3992f9a0c 100644
@@ -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;
Signature · 1 line
2.35.1
#2 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=619033

---Test result---

Test Summary:

CheckPatch                    PASS      1.05 seconds
GitLint                       PASS      0.74 seconds
Prep - Setup ELL              PASS      39.91 seconds
Build - Prep                  PASS      0.59 seconds
Build - Configure             PASS      7.79 seconds
Build - Make                  PASS      1335.50 seconds
Make Check                    PASS      11.51 seconds
Make Check w/Valgrind         PASS      408.47 seconds
Make Distcheck                PASS      216.86 seconds
Build w/ext ELL - Configure   PASS      8.18 seconds
Build w/ext ELL - Make        PASS      1339.21 seconds
Incremental Build with patchesPASS      0.00 seconds

---
Regards,
Linux Bluetooth