aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorLen Baker <[email protected]>2021-07-24 12:21:52 +0000
committerMarcel Holtmann <[email protected]>2021-07-29 11:46:13 +0000
commit785077fa2d6791d036b4227924276534ae0f192f (patch)
tree4cbd84d1f281f8bbc26e6101e8f77513577b20ec /net/bluetooth/hci_request.c
parentBluetooth: skip invalid hci_sync_conn_complete_evt (diff)
downloadkernel-785077fa2d6791d036b4227924276534ae0f192f.tar.gz
kernel-785077fa2d6791d036b4227924276534ae0f192f.zip
Bluetooth: btmrvl_sdio: Remove all strcpy() uses
strcpy() performs no bounds checking on the destination buffer. This could result in linear overflows beyond the end of the buffer, leading to all kinds of misbehaviors. The safe replacement is strscpy() but in this case it is better to use the scnprintf to simplify the arithmetic. This is a previous step in the path to remove the strcpy() function entirely from the kernel. Signed-off-by: Len Baker <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions