]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] s5h1420: fix a buffer overflow when checking userspace params
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 21:34:40 +0000 (18:34 -0300)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 3 Jul 2015 16:34:50 +0000 (12:34 -0400)
commit605ce4c68d765a5ef771ddcb5466332b3406c17c
tree8cfd9d4dfff74ef71c9bd60bb588c7f43a248e0a
parentf311de9c14c74df23c5e7dd83d65d3d5167c0ae7
[media] s5h1420: fix a buffer overflow when checking userspace params

[ Upstream commit 12f4543f5d6811f864e6c4952eb27253c7466c02 ]

The maximum size for a DiSEqC command is 6, according to the
userspace API. However, the code allows to write up to 7 values:
drivers/media/dvb-frontends/s5h1420.c:193 s5h1420_send_master_cmd() error: buffer overflow 'cmd->msg' 6 <= 7

Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/dvb-frontends/s5h1420.c