projects
/
oweals
/
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 2804d9133da0320cb49dfc1b7f2a25ecff5cde0e..d862d997e5607aa7eb69d6d61b6ea8e606102a52 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);