Unverified Commit 30aca23f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8599 Bluetooth: hci_core: Fix possible buffer overflow

parents 259fa9f3 6fa345d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2175,7 +2175,7 @@ int hci_get_dev_info(void __user *arg)
	else
		flags = hdev->flags;

	strcpy(di.name, hdev->name);
	strscpy(di.name, hdev->name, sizeof(di.name));
	di.bdaddr   = hdev->bdaddr;
	di.type     = (hdev->bus & 0x0f) | ((hdev->dev_type & 0x03) << 4);
	di.flags    = flags;