diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-09-05 19:15:50 +0100 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2017-09-20 15:41:07 +0300 |
| commit | e31fbe1034d9066cfff0d0a4f7ce440ddf75643f (patch) | |
| tree | 6076dd08e03b3a5a4647a61f4a3a10a8bfd37683 /tools/perf/scripts/python | |
| parent | rsi: fix a dereference on adapter before it has been null checked (diff) | |
| download | linux-e31fbe1034d9066cfff0d0a4f7ce440ddf75643f.tar.gz linux-e31fbe1034d9066cfff0d0a4f7ce440ddf75643f.zip | |
b43: fix unitialized reads of ret by initializing the array to zero
The u8 char array ret is not being initialized and elements outside
the range start to end contain just garbage values from the stack.
This results in a later scan of the array to read potentially
uninitialized values. Fix this by initializing the array to zero.
This seems to have been an issue since the very first commit.
Detected by CoverityScan CID#139652 ("Uninitialized scalar variable")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Michael Buesch <m@bues.ch>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
