linux-stable/drivers/net/ethernet/qualcomm
Jason Wang 0a83299935 net: qcom/emac: Replace strlcpy with strscpy
The strlcpy should not be used because it doesn't limit the source
length. As linus says, it's a completely useless function if you
can't implicitly trust the source string - but that is almost always
why people think they should use it! All in all the BSD function
will lead some potential bugs.

But the strscpy doesn't require reading memory from the src string
beyond the specified "count" bytes, and since the return value is
easier to error-check than strlcpy()'s. In addition, the implementation
is robust to the string changing out from underneath it, unlike the
current strlcpy() implementation.

Thus, We prefer using strscpy instead of strlcpy.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-09-06 16:43:17 +01:00
..
emac net: qcom/emac: Replace strlcpy with strscpy 2021-09-06 16:43:17 +01:00
rmnet net: qualcomm: rmnet: fix two pointer math bugs 2021-06-21 12:19:19 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
qca_7k.c
qca_7k.h
qca_7k_common.c
qca_7k_common.h
qca_debug.c net: qca_spi: Introduce stat about bad signature 2021-05-10 14:29:18 -07:00
qca_debug.h
qca_spi.c net: qualcomm: fix QCA7000 checksum handling 2021-08-31 11:28:02 +01:00
qca_spi.h net: qca_spi: Introduce stat about bad signature 2021-05-10 14:29:18 -07:00
qca_uart.c net: qualcomm: fix QCA7000 checksum handling 2021-08-31 11:28:02 +01:00