projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ada92
)
board/renesas/ecovec/ecovec.c: fix buffer overflow
author
Wolfgang Denk
<wd@denx.de>
Thu, 6 Nov 2014 13:03:03 +0000
(14:03 +0100)
committer
Nobuhiro Iwamatsu
<iwamatsu@nigauri.org>
Mon, 10 Nov 2014 00:39:09 +0000
(09:39 +0900)
Fix error detected by cppcheck:
[board/renesas/ecovec/ecovec.c:66]: (error) Buffer is accessed out of
bounds.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/ecovec/ecovec.c
patch
|
blob
|
history
diff --git
a/board/renesas/ecovec/ecovec.c
b/board/renesas/ecovec/ecovec.c
index
2804d91
..
d862d99
100644
(file)
--- a/
board/renesas/ecovec/ecovec.c
+++ b/
board/renesas/ecovec/ecovec.c
@@
-41,7
+41,7
@@
static void debug_led(u8 led)
int board_late_init(void)
{
u8 mac[6];
- char env_mac[1
7
];
+ char env_mac[1
8
];
udelay(1000);