Files
linux-stable-mirror/net
Luiz Augusto von Dentz d47e6c1932 Bluetooth: hci_core: Fix possible buffer overflow
[ Upstream commit 81137162bf ]

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: dcda165706 ("Bluetooth: hci_core: Fix build warnings")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:52 -04:00
..
2023-10-25 11:54:15 +02:00
2024-03-01 13:16:46 +01:00
2024-03-01 13:16:42 +01:00
2023-10-25 11:54:19 +02:00