Messages in this thread Patch in this message | | | Subject | [PATCH] Video 4 Linux Kernel 2.1.120 | Date | Sat, 5 Sep 1998 22:56:06 +0200 (CES) | From | (Peter Schlaile) |
| |
Hello Alan, linux-kernel,
this patch fixes a small problem in bttv.c where the frame parameter isn't checked.
To be applied in drivers/char:
--- bttv.c.backup Sat Sep 5 22:15:21 1998 +++ bttv.c Sat Sep 5 22:15:34 1998 @@ -1801,6 +1801,9 @@ case VIDIOCSYNC: if(copy_from_user((void *)&i,arg,sizeof(int))) return -EFAULT; + if(i>1 || i<0) + return -EINVAL; + switch (btv->frame_stat[i]) { case GBUFFER_UNUSED: return -EINVAL; Greetings, Peter
-- Peter Schlaile *** eMail udbz@rz.uni-karlsruhe.de
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html
| |