From: Mauro Carvalho Chehab Date: Tue, 22 Apr 2008 17:42:13 +0000 (-0300) Subject: V4L/DVB (7235): tuner-simple: fix a buffer overflow X-Git-Tag: v2.6.26-rc1~1084^2~409 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13613acfb1a71895ac886dc831d6ae4e20e241a;p=pandora-kernel.git V4L/DVB (7235): tuner-simple: fix a buffer overflow simple_set_tv() creates a buffer with 4 elements, and calls simple_std_setup(), passing &buffer[1]. This makes the 5th element of buffer to be initialized to 0, overriding some area outside the buffer. Also, simple_std_setup() receives a buffer as parameter, but the buffer is just overriden after the call, so, it doesn't make much sense to pass it as a parameter. This patch removes buffer[] from the function call, creating, instead, a local var to be used internally. Thanks to Axel Rometsch for pointing the issue. Reviewed-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed