Re: [PATCH] v4l2: handle multiplication overflow

2012-01-23 Thread Németh Márton
Mauro Carvalho Chehab írta: > Em 22-12-2011 07:42, Németh Márton escreveu: >> From: Márton Németh >> >> When a V4L2 ioctl is executed the memory provided by the caller in user space >> is copied to the kernel space in video_usercopy() function. To find out >> how many bytes has to be copied the ch

Re: [PATCH] v4l2: handle multiplication overflow

2012-01-23 Thread Mauro Carvalho Chehab
Em 22-12-2011 07:42, Németh Márton escreveu: > From: Márton Németh > > When a V4L2 ioctl is executed the memory provided by the caller in user space > is copied to the kernel space in video_usercopy() function. To find out > how many bytes has to be copied the check_array_args() helper function i

[PATCH] v4l2: handle multiplication overflow

2011-12-22 Thread Németh Márton
From: Márton Németh When a V4L2 ioctl is executed the memory provided by the caller in user space is copied to the kernel space in video_usercopy() function. To find out how many bytes has to be copied the check_array_args() helper function is used. This patch adds a check for multiplication ove