Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08a92d4e authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] DO NOT MERGE Prevent stack overflow in btif_storage am:...

[automerger] DO NOT MERGE Prevent stack overflow in btif_storage am: 89a18a04 am: d15ee07e am: faa4e38f am: a26872ef

Change-Id: I881f729bd844988a39bf561b870cbdca9c6d45df
parents 39ab1e16 a26872ef
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -229,6 +229,10 @@ static int prop2cfg(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop)
                bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i;
                bt_uuid_t *p_uuid = (bt_uuid_t*)prop->val + i;
                memset(buf, 0, sizeof(buf));
                memset(buf, 0, sizeof(buf));
                uuid_to_string_legacy(p_uuid, buf);
                uuid_to_string_legacy(p_uuid, buf);
                if (strlen(value) + strlen(buf) + 1 > (int) sizeof(value) - 1) {
                    android_errorWriteLog(0x534e4554, "73963551");
                    return FALSE;
                }
                strcat(value, buf);
                strcat(value, buf);
                //strcat(value, ";");
                //strcat(value, ";");
                strcat(value, " ");
                strcat(value, " ");