From 5cd6bfe8908c97a36a300a10a59753f79bac8969 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 13 Apr 2004 04:49:20 -0700 Subject: [PATCH] [PATCH] update fix for potential integer overflow in zoran driver From: Dave Jones 2.4 already had this fixed, but uses a somewhat larger value to clip at. For uniformity sake, perhaps they should be the same? Patch below makes it match 2.4-bk --- drivers/media/video/zoran_procfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/video/zoran_procfs.c b/drivers/media/video/zoran_procfs.c index 7e1bd5471a5ea..703d6bf8e516e 100644 --- a/drivers/media/video/zoran_procfs.c +++ b/drivers/media/video/zoran_procfs.c @@ -204,8 +204,7 @@ zoran_write_proc (struct file *file, char *line, *ldelim, *varname, *svar, *tdelim; struct zoran *zr; - /* Random maximum */ - if (count > 256) + if (count > 32768) /* Stupidity filter */ return -EINVAL; zr = (struct zoran *) data; -- 2.53.0