From: Marek Lindner Date: Sat, 27 Apr 2013 08:22:28 +0000 (+0800) Subject: batman-adv: check proto length before accessing proto string buffer X-Git-Tag: v3.10-rc2~34^2~15^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=293c9c1cef6be46ad72b528fa79c3ff034551fe0;p=pandora-kernel.git batman-adv: check proto length before accessing proto string buffer batadv_param_set_ra() strips the trailing '\n' from the supplied string buffer without checking the length of the buffer first. This patches avoids random memory access and associated potential crashes. Reported-by: Sasha Levin Signed-off-by: Marek Lindner Signed-off-by: Antonio Quartulli --- Reading git-diff-tree failed