Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1735753 > unrolled thread

Re: [1/2] b43: fix unitialized reads of ret by initializing the array to zero

Started byKalle Valo <kvalo@codeaurora.org>
First post2017-09-20 14:50 +0200
Last post2017-09-20 14:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [1/2] b43: fix unitialized reads of ret by initializing the array  to zero Kalle Valo <kvalo@codeaurora.org> - 2017-09-20 14:50 +0200

#1735753 — Re: [1/2] b43: fix unitialized reads of ret by initializing the array to zero

FromKalle Valo <kvalo@codeaurora.org>
Date2017-09-20 14:50 +0200
SubjectRe: [1/2] b43: fix unitialized reads of ret by initializing the array to zero
Message-ID<urMBY-354-13@gated-at.bofh.it>
Colin Ian King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> 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>

2 patches applied to wireless-drivers-next.git, thanks.

e31fbe1034d9 b43: fix unitialized reads of ret by initializing the array to zero
e3ae1c772046 b43legacy: fix unitialized reads of ret by initializing the array to zero

-- 
https://patchwork.kernel.org/patch/9939435/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web