summaryrefslogtreecommitdiff
path: root/drivers/media/usb/uvc/uvc_video.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2014-10-07 15:58:55 +0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-10-21 14:52:11 +0400
commitc204e1fafbd50a158a34c8a5bd9682cb04ecb29b (patch)
tree5a461b1684158d34930839266731efd7978c6502 /drivers/media/usb/uvc/uvc_video.c
parenta0bd3e0b31500251876da505295834e73f33f6f8 (diff)
downloadlinux-c204e1fafbd50a158a34c8a5bd9682cb04ecb29b.tar.xz
[media] vivid: fix buffer overrun
The random_line buffer must be twice the maximum width, but it only allocated the maximum width, so it was only half the size it needed to be. Surprisingly I never saw the kernel fail on this, but the same TPG code used in qv4l2 crashed and valgrind helped me track this bug down. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvc_video.c')
0 files changed, 0 insertions, 0 deletions