diff options
author | Cyril Roelandt <tipecaml@gmail.com> | 2013-01-28 02:42:48 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-31 00:07:09 +0400 |
commit | 485f107d341cb1d09e010e0466b02a1ad026f489 (patch) | |
tree | 7d78c7f246caff67d150b71126dde6bbe83b6020 /tools | |
parent | 44ba973699b831414c3f8eef68ee5a7fe1208a05 (diff) | |
download | linux-485f107d341cb1d09e010e0466b02a1ad026f489.tar.xz |
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:
<smpl>
@@
identifier t;
identifier idx;
expression E;
statement S;
@@
* for (... ; <+... t[idx] ...+> && idx < E ; ...)
S
</smpl>
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions