diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-01-13 01:59:14 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:03:05 +0100 |
commit | 2260209c4973e3eeb1e48abaa9e639373a0d4fb7 (patch) | |
tree | 39b539b4f00d3321b25314eca417d70238366460 /drivers/leds/leds-pca9532.c | |
parent | fs/ext4/inode.c: use pr_warn_ratelimited() (diff) | |
download | linux-2260209c4973e3eeb1e48abaa9e639373a0d4fb7.tar.xz linux-2260209c4973e3eeb1e48abaa9e639373a0d4fb7.zip |
drivers/leds/leds-lp5521.c: fix potential buffer overflow
The code doesn't check first sscanf() return value. If first sscanf()
failed then c contains some garbage. It might lead to reading
uninitialised stack data in the second sscanf() call.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds/leds-pca9532.c')
0 files changed, 0 insertions, 0 deletions