We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be11f6f commit 597d76cCopy full SHA for 597d76c
subsys/bluetooth/host/classic/hfp_hf.c
@@ -3968,6 +3968,8 @@ static struct bt_hfp_hf *hfp_hf_create(struct bt_conn *conn)
3968
LOG_DBG("conn %p", conn);
3969
3970
index = (size_t)bt_conn_index(conn);
3971
+ __ASSERT(index < ARRAY_SIZE(bt_hfp_hf_pool), "Index is out of bounds");
3972
+
3973
hf = &bt_hfp_hf_pool[index];
3974
if (hf->acl) {
3975
LOG_ERR("HF connection (%p) is established", conn);
0 commit comments