From: Dan Carpenter Date: Thu, 5 Jan 2012 05:27:57 +0000 (-0300) Subject: [media] V4L/DVB: v4l2-ioctl: integer overflow in video_usercopy() X-Git-Tag: v3.3-rc1~48^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c06108be53ca5e94d8b0e93883d534dd9079646;p=pandora-kernel.git [media] V4L/DVB: v4l2-ioctl: integer overflow in video_usercopy() If ctrls->count is too high the multiplication could overflow and array_size would be lower than expected. Mauro and Hans Verkuil suggested that we cap it at 1024. That comes from the maximum number of controls with lots of room for expantion. $ grep V4L2_CID include/linux/videodev2.h | wc -l 211 Cc: stable Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed