lkml.org 
[lkml]   [1998]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Video 4 Linux Kernel 2.1.120
Date
From
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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.015 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site