]> rtime.felk.cvut.cz Git - can-utils.git/commit
treewide: use if_nametoindex to avoid overflows
authorSven Schmitt <sven.schmitt@gmx.net>
Wed, 24 Jun 2015 13:33:20 +0000 (15:33 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 30 Jun 2015 19:00:04 +0000 (21:00 +0200)
commitf5fb7317aa89263ee13919fa93e86c0f97aa52c7
tree20eacd8f5e165e1580d4c0aaae32507d785b8f51
parent8af831f377161f1a5dbbb4f80794d793aa5462df
treewide: use if_nametoindex to avoid overflows

replaced strcpy(if_name, argv[x]) + ioctl by if_idx = if_nametoindex(argv[x])
to avoid overflows caused by long user input.

Signed-off-by: Sven Schmitt <sven.schmitt@gmx.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
canfdtest.c
cansend.c
isotpdump.c
isotprecv.c
isotpsend.c
isotpserver.c
isotpsniffer.c
isotptun.c
slcanpty.c