linux/drivers/net/netdevsim
Takashi Iwai 2da222f612 net: netdevsim: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the
actual output size, the succeeding calls may go beyond the given
buffer limit.  Fix it by replacing with scnprintf().

Cc: "David S . Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-15 17:06:22 -07:00
..
bpf.c netdevsim: use IS_ERR instead of IS_ERR_OR_NULL for debugfs 2020-02-03 15:32:20 -08:00
bus.c netdevsim: use __GFP_NOWARN to avoid memalloc warning 2020-02-03 15:32:20 -08:00
dev.c netdevsim: fix ptr_ret.cocci warnings 2020-02-05 13:55:32 +01:00
fib.c netdevsim: fix nsim_fib6_rt_create() error path 2020-01-17 11:00:57 +01:00
health.c netdevsim: use __GFP_NOWARN to avoid memalloc warning 2020-02-03 15:32:20 -08:00
ipsec.c net: netdevsim: Use scnprintf() for avoiding potential buffer overflow 2020-03-15 17:06:22 -07:00
Makefile netdevsim: implement couple of testing devlink health reporters 2019-10-11 21:02:30 -07:00
netdev.c netdevsim: register port netdevices into net of device 2019-10-04 11:10:56 -07:00
netdevsim.h netdevsim: fix panic in nsim_dev_take_snapshot_write() 2020-02-03 15:32:20 -08:00