diff options
| author | Oscar Carter <oscar.carter@gmx.com> | 2020-05-04 17:09:11 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-05 12:23:28 +0200 |
| commit | a4338ed2e1cf724563956ec5f91deeaabfedbe23 (patch) | |
| tree | 2be7bba1341b04a2766cf36e08a73d89442e8d12 /tools/perf/scripts/python | |
| parent | 8d8a1424a03e0fe6dff5542a2d412a3836eb87a7 (diff) | |
| download | linux-a4338ed2e1cf724563956ec5f91deeaabfedbe23.tar.gz linux-a4338ed2e1cf724563956ec5f91deeaabfedbe23.zip | |
staging: wilc1000: Increase the size of wid_list array
Increase by one the size of wid_list array as index variable can reach a
value of 5. If this happens, an out-of-bounds access is performed.
Also, use a #define instead of a hard-coded literal for the new array
size.
Addresses-Coverity-ID: 1451981 ("Out-of-bounds access")
Fixes: f5a3cb90b802d ("staging: wilc1000: add passive scan support")
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200504150911.4470-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
