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

Commit 54a03e4a authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by Sasha Levin
Browse files

Bluetooth: hci_core: Fix possible buffer overflow



[ Upstream commit 81137162bfaa7278785b24c1fd2e9e74f082e8e4 ]

struct hci_dev_info has a fixed size name[8] field so in the event that
hdev->name is bigger than that strcpy would attempt to write past its
size, so this fixes this problem by switching to use strscpy.

Fixes: dcda165706b9 ("Bluetooth: hci_core: Fix build warnings")
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f6177a17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment