From: Roel Kluin Date: Tue, 11 Aug 2009 01:07:54 +0000 (-0300) Subject: V4L/DVB (12438): Read buffer overflow X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bb2b4542b6415044894cd7c147ff54840dd8ed3f;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (12438): Read buffer overflow parport[n] is checked before n < MAX_CAMS Signed-off-by: Roel Kluin Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c index 10dbd4a11b30..9e39bc5f7b00 100644 --- a/drivers/media/video/bw-qcam.c +++ b/drivers/media/video/bw-qcam.c @@ -992,7 +992,7 @@ static int accept_bwqcam(struct parport *port) if (parport[0] && strncmp(parport[0], "auto", 4) != 0) { /* user gave parport parameters */ - for(n=0; parport[n] && n