media: v4l2-ctrls.c: fix shift-out-of-bounds in std_validate
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 20 Jan 2021 08:28:02 +0000 (09:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 07:31:54 +0000 (08:31 +0100)
commit048c96e28674f15c0403deba2104ffba64544a06
treed2c8153fb869d4220db9447a3434c7e2a25755a6
parent036bf04f14a1bfc6db771e8e1b8f53eb3f092006
media: v4l2-ctrls.c: fix shift-out-of-bounds in std_validate

If a menu has more than 64 items, then don't check menu_skip_mask
for items 65 and up.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: syzbot+42d8c7c3d3e594b34346@syzkaller.appspotmail.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c