[PATCH 0/6] Use safer strscpy() instead of strcpy()

Ai Chao posted 6 patches 4 weeks, 1 day ago
drivers/usb/gadget/function/f_midi2.c  |  6 +++---
drivers/usb/gadget/function/u_serial.c |  2 +-
drivers/usb/gadget/udc/snps_udc_core.c |  2 +-
drivers/usb/musb/musb_core.c           |  2 +-
drivers/usb/serial/ti_usb_3410_5052.c  | 16 ++++++++--------
drivers/usb/typec/tcpm/tcpm.c          |  6 +++---
drivers/usb/usbip/vhci_sysfs.c         |  2 +-
7 files changed, 18 insertions(+), 18 deletions(-)
[PATCH 0/6] Use safer strscpy() instead of strcpy()
Posted by Ai Chao 4 weeks, 1 day ago
This patch series introduces wrapper functions strscpy().

Use a safer function strscpy() instead of strcpy() for copying to arrays.

Only idiomatic code replacement, and no functional changes.

Summary:

 - Patch 1 USB: serial: ti_usb_3410_5052: Use safer strscpy() instead of strcpy()
 - Patch 2 usb: musb: Use safer strscpy() instead of strcpy()
 - Patch 3 usb: gadget: functionfs: Use safer strscpy() instead of strcpy()
 - Patch 4 usb: typec: tcpm: Use safer strscpy() instead of strcpy()
 - Patch 5 usb: gadget: udc: Use safer strscpy() instead of strcpy()
 - Patch 6 usbip: vhci_sysfs: Use safer strscpy() instead of strcpy()

 drivers/usb/gadget/function/f_midi2.c  |  6 +++---
 drivers/usb/gadget/function/u_serial.c |  2 +-
 drivers/usb/gadget/udc/snps_udc_core.c |  2 +-
 drivers/usb/musb/musb_core.c           |  2 +-
 drivers/usb/serial/ti_usb_3410_5052.c  | 16 ++++++++--------
 drivers/usb/typec/tcpm/tcpm.c          |  6 +++---
 drivers/usb/usbip/vhci_sysfs.c         |  2 +-
 7 files changed, 18 insertions(+), 18 deletions(-)

-- 
2.34.1