[PATCH 08/13] cx24116: fix a buffer overflow when checking userspace params

2015-04-28 Thread Mauro Carvalho Chehab
The maximum size for a DiSEqC command is 6, according to the userspace API. However, the code allows to write up much more values: drivers/media/dvb-frontends/cx24116.c:983 cx24116_send_diseqc_msg() error: buffer overflow 'd->msg' 6 <= 23 Cc: sta...@vger.kernel.org Signed-off-by: Mauro Ca

[PATCH 08/13] cx24116: fix a buffer overflow when checking userspace params

2015-04-28 Thread Mauro Carvalho Chehab
The maximum size for a DiSEqC command is 6, according to the userspace API. However, the code allows to write up much more values: drivers/media/dvb-frontends/cx24116.c:983 cx24116_send_diseqc_msg() error: buffer overflow 'd->msg' 6 <= 23 Cc: sta...@vger.kernel.org Signed-off-by: Mauro Ca