]> git.karo-electronics.de Git - linux-beck.git/commit
[media] vivid: sanitize selection rectangle
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 15 Mar 2015 16:40:04 +0000 (13:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 00:10:45 +0000 (21:10 -0300)
commit82bdb26abcae2988c74be29203caf23dabbe4be3
tree4fae28f342b03aa3ea8762ab3d82db1996a7846a
parent29813a6f34042da13d201694964d9dea3d4658ef
[media] vivid: sanitize selection rectangle

Handle values like ~0 as width, height, left or top fields.
Just strip off the top 16 bits will ensure that the calculations
remain OK.

Found with v4l2-compliance.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-vid-common.c