aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-05 02:27:57 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-25 17:24:46 -0800
commit065449fd56d2f75cc943a6d501b292f6b0e40325 (patch)
tree944eb13b6e59e29869631a30e27460249524a572 /scripts
parentb1830247c9927d7d2ca17c9f84908fc130051792 (diff)
downloadkernel_samsung_smdk4412-065449fd56d2f75cc943a6d501b292f6b0e40325.zip
kernel_samsung_smdk4412-065449fd56d2f75cc943a6d501b292f6b0e40325.tar.gz
kernel_samsung_smdk4412-065449fd56d2f75cc943a6d501b292f6b0e40325.tar.bz2
V4L/DVB: v4l2-ioctl: integer overflow in video_usercopy()
commit 6c06108be53ca5e94d8b0e93883d534dd9079646 upstream. 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 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions