android_kernel_oneplus_msm8998/drivers/net/can
Wang Xiayang 1f46dbe266 can: peak_usb: force the string buffer NULL-terminated
[ Upstream commit e787f19373b8a5fa24087800ed78314fd17b984a ]

strncpy() does not ensure NULL-termination when the input string size
equals to the destination buffer size IFNAMSIZ. The output string is
passed to dev_info() which relies on the NULL-termination.

Use strlcpy() instead.

This issue is identified by a Coccinelle script.

Signed-off-by: Wang Xiayang <xywang.sjtu@sjtu.edu.cn>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-06 10:18:07 +02:00
..
c_can can: c_can: don't indicate triple sampling support for D_CAN 2017-11-15 17:13:13 +01:00
cc770 can: cc770: Fix use after free in cc770_tx_interrupt() 2018-03-28 18:40:16 +02:00
m_can
mscan can: mpc5xxx_can: check of_iomap return before use 2018-09-05 09:18:35 +02:00
sja1000 can: sja1000: force the string buffer NULL-terminated 2019-09-06 10:18:07 +02:00
softing
spi can: mcp251x: add support for mcp25625 2019-07-21 09:07:07 +02:00
usb can: peak_usb: force the string buffer NULL-terminated 2019-09-06 10:18:07 +02:00
at91_can.c
bfin_can.c
dev.c can: dev: call netif_carrier_off() in register_candev() 2019-09-06 10:18:05 +02:00
flexcan.c can: flexcan: fix timeout when set small bitrate 2019-07-10 09:56:33 +02:00
grcan.c
janz-ican3.c
Kconfig
led.c
Makefile
pch_can.c
rcar_can.c can: rcar_can: Fix erroneous registration 2018-12-13 09:21:34 +01:00
slcan.c
sun4i_can.c can: sun4i: handle overrun in RX FIFO 2017-11-15 17:13:13 +01:00
ti_hecc.c can: ti_hecc: Fix napi poll return value for repoll 2017-12-16 10:33:47 +01:00
vcan.c
xilinx_can.c can: xilinx_can: fix RX overflow interrupt not being enabled 2018-07-28 07:45:04 +02:00