On Nov 26, 2010, at 12:06 PM, Vasiliy Kulikov wrote:

> 'n' may be bigger than MAX_INT*sizeof(int), if so checking of truncated
> (int)(n/sizeof(int)) for LIRCBUF_SIZE overflow and then using nontruncated 
> 'count'
> doesn't make sense.  Also n may be up to sizeof(int)-1 bytes bigger than 
> expected,
> so check value of (n % sizeof(int)) too.
> 
> Signed-off-by: Vasiliy Kulikov <[email protected]>
> ---
> Compile tested only.

Looks sane.

Acked-by: Jarod Wilson <[email protected]>

-- 
Jarod Wilson
[email protected]



--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to