]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx24116: fix a buffer overflow when checking userspace params
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 21:51:17 +0000 (18:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 17:26:05 +0000 (14:26 -0300)
commitfb0fc25afd86d92f85e07a6d6ea259770587dd49
treecdf9b79e7ac2fb2980177140951de7c317ba42db
parent03c803cfde5ca4a84fd7659f0ef3b6a78a8cb98a
[media] cx24116: fix a buffer overflow when checking userspace params

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: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/cx24116.c