Re: [PATCH] ivtv: Read buffer overflow

2009-07-23 Thread Andy Walls
On Thu, 2009-07-23 at 23:31 +0200, Roel Kluin wrote: > This mistakenly tests against sizeof(freqs) instead of the array size. Due to > the mask the only illegal value possible was 3. > > Signed-off-by: Roel Kluin Acked-by: Andy Walls The cx18 driver suffers from the exact same defect in cx18-c

[PATCH] ivtv: Read buffer overflow

2009-07-23 Thread Roel Kluin
This mistakenly tests against sizeof(freqs) instead of the array size. Due to the mask the only illegal value possible was 3. Signed-off-by: Roel Kluin --- diff --git a/drivers/media/video/ivtv/ivtv-controls.c b/drivers/media/video/ivtv/ivtv-controls.c index a3b77ed..4a9c8ce 100644 --- a/drivers