diff options
author | Francois Berder <fberder@outlook.fr> | 2023-09-29 16:11:00 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-09 15:24:31 -0400 |
commit | e483a7c8fff23d5aab27937f6054c883f99c8680 (patch) | |
tree | 645e8e06bf20f5e6b56f284ac9171331aa8a41d1 | |
parent | 6da11cc81ea773d9a1e3059da311c6f2e2aeb6ef (diff) |
board/km/cent2: Fix buffer overflow when fixing MAC address
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>
-rw-r--r-- | board/keymile/kmcent2/kmcent2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/keymile/kmcent2/kmcent2.c b/board/keymile/kmcent2/kmcent2.c index 572cc7bbdc..783853d5c6 100644 --- 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[24]; + char path[25]; unsigned char mac_addr[6]; /* |