summaryrefslogtreecommitdiff
path: root/lib/sha1.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-11-17 08:23:40 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-03 07:46:34 +0100
commit8e4d86e241cf035d6d3467cd346e7ce490681937 (patch)
tree633e1a40fff713a2d11925926020b13397e6bc90 /lib/sha1.c
parent28c1e371c2ff445162ca6de9a81463351d9e137d (diff)
media: saa7146: fix array overflow in vidioc_s_audio()
The "a->index" value comes from the user via the ioctl. The problem is that the shift can wrap resulting in setting "mxb->cur_audinput" to an invalid value, which later results in an array overflow. Fixes: 6680427791c9 ("[media] mxb: fix audio handling") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'lib/sha1.c')
0 files changed, 0 insertions, 0 deletions