Commit 5cd6bfe8 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] update fix for potential integer overflow in zoran driver

From: Dave Jones <davej@redhat.com>

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
parent cd449d5e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment