Re: [PATCH] Bluetooth: hidp: NUL terminate a string in the compat ioctl

2019-07-06 Thread Marcel Holtmann
Hi Dan, > This change is similar to commit a1616a5ac99e ("Bluetooth: hidp: fix > buffer overflow") but for the compat ioctl. We take a string from the > user and forgot to ensure that it's NUL terminated. > > I have also changed the strncpy() in to strscpy() in hidp_setup_hid(). > The difference

[PATCH] Bluetooth: hidp: NUL terminate a string in the compat ioctl

2019-05-16 Thread Dan Carpenter
This change is similar to commit a1616a5ac99e ("Bluetooth: hidp: fix buffer overflow") but for the compat ioctl. We take a string from the user and forgot to ensure that it's NUL terminated. I have also changed the strncpy() in to strscpy() in hidp_setup_hid(). The difference is the strncpy() doe