git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6da11cc
)
board/km/cent2: Fix buffer overflow when fixing MAC address
author
Francois Berder
<fberder@outlook.fr>
Fri, 29 Sep 2023 14:11:00 +0000
(16:11 +0200)
committer
Tom Rini
<trini@konsulko.com>
Mon, 9 Oct 2023 19:24:31 +0000
(15:24 -0400)
String "/soc/fman/ethernet@e8000" is 25 bytes long
and not 24 due to extra byte for null character at
the end.
Signed-off-by: Francois Berder <fberder@outlook.fr>
board/keymile/kmcent2/kmcent2.c
patch
|
blob
|
history
diff --git
a/board/keymile/kmcent2/kmcent2.c
b/board/keymile/kmcent2/kmcent2.c
index
572cc7b
..
783853d
100644
(file)
--- a/
board/keymile/kmcent2/kmcent2.c
+++ b/
board/keymile/kmcent2/kmcent2.c
@@
-292,7
+292,7
@@
EVENT_SPY_SIMPLE(EVT_LAST_STAGE_INIT, last_stage_init);
void fdt_fixup_fman_mac_addresses(void *blob)
{
int node, ret;
- char path[2
4
];
+ char path[2
5
];
unsigned char mac_addr[6];
/*