summaryrefslogtreecommitdiffstats
path: root/net/wireless/pmsr.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-08-04 17:09:51 +0200
committerMarcel Holtmann <marcel@holtmann.org>2021-08-05 15:05:37 +0200
commit713baf3dae8f45dc8ada4ed2f5fdcbf94a5c274d (patch)
tree5830683a2c0daae76096b2463f5133861b8f7a7b /net/wireless/pmsr.c
parentBluetooth: Add additional Bluetooth part for Realtek 8852AE (diff)
downloadlinux-713baf3dae8f45dc8ada4ed2f5fdcbf94a5c274d.tar.xz
linux-713baf3dae8f45dc8ada4ed2f5fdcbf94a5c274d.zip
Bluetooth: increase BTNAMSIZ to 21 chars to fix potential buffer overflow
An earlier commit replaced using batostr to using %pMR sprintf for the construction of session->name. Static analysis detected that this new method can use a total of 21 characters (including the trailing '\0') so we need to increase the BTNAMSIZ from 18 to 21 to fix potential buffer overflows. Addresses-Coverity: ("Out-of-bounds write") Fixes: fcb73338ed53 ("Bluetooth: Use %pMR in sprintf/seq_printf instead of batostr") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/wireless/pmsr.c')
0 files changed, 0 insertions, 0 deletions