From: Cyril Roelandt Date: Sun, 27 Jan 2013 22:42:48 +0000 (+0100) Subject: mwifiex: avoid out of bounds access in mwifiex_get_common_rates. X-Git-Tag: v3.9-rc1~139^2~2^2^2~42^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=485f107d341cb1d09e010e0466b02a1ad026f489;p=pandora-kernel.git mwifiex: avoid out of bounds access in mwifiex_get_common_rates. Check that the array indexes are in-bounds before accessing the rate2 and tmp arrays. Found with the following semantic patch: @@ identifier t; identifier idx; expression E; statement S; @@ * for (... ; <+... t[idx] ...+> && idx < E ; ...) S Signed-off-by: Cyril Roelandt Acked-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed