linux/drivers/media/common/siano
Mauro Carvalho Chehab 5ef76cb7c1 media: siano: be sure to not override devpath size
Right now, at siano driver, all places where devpath is
defined has sizeof(devpath) == 32. So, there's no practical
risc of going past devpath array anywhere.

Still, code changes might cause troubles. It also confuses
Coverity:
	CID 139059 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
	9. fixed_size_dest: You might overrun the 32-character
	   fixed-size string entry->devpath by copying devpath
	   without checking the length.
	10. parameter_as_source: Note: This defect has an
	    elevated risk because the source argument
	    is a parameter of the current function.

So, explicitly limit strcmp() and strcpy() to ensure that the
devpath size (32) will be respected.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-04 08:55:36 -04:00
..
Kconfig [media] sms: Remove CONFIG_ prefix from Kconfig symbols 2014-07-22 09:57:28 -03:00
Makefile media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
sms-cards.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
sms-cards.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
smscoreapi.c media: siano: be sure to not override devpath size 2018-05-04 08:55:36 -04:00
smscoreapi.h media: siano: Fix coherent memory allocation failure on arm64 2018-03-06 12:46:15 -05:00
smsdvb-debugfs.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
smsdvb-main.c media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
smsdvb.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
smsendian.c media: siano: get rid of __le32/__le16 cast warnings 2018-05-04 08:55:05 -04:00
smsendian.h
smsir.c media: siano: add SPDX markups 2017-12-11 07:44:07 -05:00
smsir.h media: siano: add SPDX markups 2017-12-11 07:44:07 -05:00