acrn-kernel/net/bluetooth
Itay Iellin 103a2f3255 Bluetooth: Fix the creation of hdev->name
Set a size limit of 8 bytes of the written buffer to "hdev->name"
including the terminating null byte, as the size of "hdev->name" is 8
bytes. If an id value which is greater than 9999 is allocated,
then the "snprintf(hdev->name, sizeof(hdev->name), "hci%d", id)"
function call would lead to a truncation of the id value in decimal
notation.

Set an explicit maximum id parameter in the id allocation function call.
The id allocation function defines the maximum allocated id value as the
maximum id parameter value minus one. Therefore, HCI_MAX_ID is defined
as 10000.

Signed-off-by: Itay Iellin <ieitayie@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2022-05-11 17:18:42 -07:00
..
bnep bluetooth: Use netif_rx(). 2022-03-07 11:40:41 +00:00
cmtp
hidp
rfcomm
6lowpan.c bluetooth: Use netif_rx(). 2022-03-07 11:40:41 +00:00
Kconfig
Makefile
a2mp.c
a2mp.h
af_bluetooth.c Bluetooth: fix incorrect nonblock bitmask in bt_sock_wait_ready() 2022-03-18 17:12:08 +01:00
amp.c
amp.h
aosp.c
aosp.h
ecdh_helper.c
ecdh_helper.h
eir.c
eir.h Bluetooth: Improve skb handling in mgmt_device_connected() 2022-03-04 16:10:49 +01:00
hci_codec.c
hci_codec.h
hci_conn.c Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted 2022-04-26 20:10:51 +02:00
hci_core.c Bluetooth: Fix the creation of hdev->name 2022-05-11 17:18:42 -07:00
hci_debugfs.c
hci_debugfs.h
hci_event.c Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted 2022-04-26 20:10:51 +02:00
hci_request.c
hci_request.h
hci_sock.c
hci_sync.c Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted 2022-04-26 20:10:51 +02:00
hci_sysfs.c
l2cap_core.c Bluetooth: Don't assign twice the same value 2022-03-18 17:12:08 +01:00
l2cap_sock.c
leds.c
leds.h
lib.c
mgmt.c Bluetooth: Send AdvMonitor Dev Found for all matched devices 2022-03-18 17:12:08 +01:00
mgmt_config.c
mgmt_config.h
mgmt_util.c Bluetooth: assign len after null check 2022-02-24 21:05:21 +01:00
mgmt_util.h
msft.c Bluetooth: msft: Clear tracked devices on resume 2022-03-18 17:12:08 +01:00
msft.h
sco.c
selftest.c
selftest.h
smp.c
smp.h