Francois Berder
919af6e49b
net: ti: icssg: Fix portname buffer overflow
...
portname consists of dev->parent->name ("icssg0-eth",
"icssg1-eth", or "ethernet") and dev->name is the port node
name ("port@0" or "port@1"). Every board DTS in the repository
produces a string that overflows the buffer:
"icssg1-eth-port@0" 17 chars + NUL = 18 bytes (AM642 EVM, IoT2050)
"ethernet-port@0" 15 chars + NUL = 16 bytes (SR-SOM, phyboard)
This commits increases portname to 64 bytes and replaces sprintf
by snprintf so that any future DT node name cannot overflow it
regardless of length.
Signed-off-by: Francois Berder <fberder@outlook.fr >
Reviewed-by: Jerome Forissier <jerome.forissier@arm.com >
2026-06-03 17:22:24 +02:00
..
2026-03-31 16:43:28 +02:00
2026-03-31 16:43:28 +02:00
2025-08-27 15:39:58 +08:00
2026-04-09 12:17:28 -06:00
2025-08-18 15:47:57 +02:00
2025-06-02 17:26:16 -06:00
2025-10-22 11:16:10 +02:00
2023-01-20 12:27:24 -05:00
2026-02-17 13:50:22 -06:00
2025-08-18 15:47:57 +02:00
2025-08-01 09:30:47 +02:00
2026-05-06 11:07:22 +02:00
2026-04-07 11:32:56 -06:00
2026-06-03 17:22:24 +02:00
2024-05-20 13:35:03 -06:00
2026-03-31 16:43:28 +02:00
2024-05-20 13:35:03 -06:00
2020-05-18 21:19:23 -04:00
2024-09-11 20:34:48 +08:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-06-13 16:30:46 -06:00
2026-04-07 11:32:56 -06:00
2025-08-18 15:47:58 +02:00
2021-01-27 10:47:44 -05:00
2025-05-29 08:30:25 -06:00
2025-10-22 14:28:33 +02:00
2025-01-23 18:51:26 -06:00
2024-05-20 13:35:03 -06:00
2021-09-28 18:50:56 +03:00
2026-04-07 11:32:59 -06:00
2024-10-29 16:25:53 -03:00
2024-09-03 09:12:00 -06:00
2024-09-03 09:12:00 -06:00
2024-09-03 09:12:00 -06:00
2026-03-10 10:07:03 -06:00
2024-09-03 09:12:00 -06:00
2025-09-16 15:24:30 +02:00
2026-03-10 10:07:03 -06:00
2026-02-06 16:42:45 +01:00
2025-08-08 15:59:58 +08:00
2026-04-07 11:32:56 -06:00
2025-12-01 13:54:04 +08:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2025-01-24 09:55:54 +08:00
2025-07-17 14:37:40 +08:00
2025-08-14 10:58:40 -06:00
2025-05-05 14:16:50 -06:00
2025-05-05 14:16:50 -06:00
2024-10-27 17:03:40 -06:00
2024-07-26 07:49:36 -06:00
2024-07-26 07:49:36 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2025-11-29 17:06:34 -03:00
2025-11-04 12:39:46 -03:00
2025-11-04 12:39:46 -03:00
2026-04-21 20:49:39 -03:00
2026-04-21 20:49:39 -03:00
2026-04-21 20:49:39 -03:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-08-01 09:30:47 +02:00
2024-09-11 20:34:43 +08:00
2024-07-22 10:53:05 -06:00
2023-02-10 13:41:07 -05:00
2026-02-17 13:50:22 -06:00
2024-03-26 19:58:26 -04:00
2025-08-01 09:30:47 +02:00
2024-05-20 13:35:03 -06:00
2026-04-27 11:26:40 -06:00
2025-08-18 15:47:58 +02:00
2024-07-22 10:53:05 -06:00
2024-10-27 10:19:44 -06:00
2022-11-28 10:25:17 -05:00
2026-05-06 11:07:22 +02:00
2026-05-06 11:07:22 +02:00
2025-09-08 09:16:18 -06:00
2026-03-12 12:49:35 +01:00
2024-07-03 14:42:01 -06:00
2024-05-20 13:35:03 -06:00
2025-01-01 14:35:54 -06:00
2021-01-05 12:24:41 -07:00
2021-04-06 11:10:29 +02:00
2025-09-30 20:32:15 +02:00
2021-04-06 11:10:29 +02:00
2022-04-10 08:44:12 +03:00
2020-12-13 08:00:25 -07:00
2024-05-20 13:35:03 -06:00
2026-01-15 11:09:28 +01:00
2026-03-12 12:49:35 +01:00
2025-10-22 11:16:10 +02:00
2024-07-22 10:53:05 -06:00
2022-04-10 08:44:13 +03:00
2024-05-20 13:35:03 -06:00
2025-08-18 15:47:57 +02:00
2026-01-21 12:05:15 -06:00
2022-12-22 10:31:48 -05:00
2024-05-20 13:35:03 -06:00
2026-02-17 13:50:22 -06:00
2025-08-18 15:47:57 +02:00
2025-05-29 08:30:24 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2020-05-18 21:19:23 -04:00
2024-05-20 13:35:03 -06:00
2025-12-23 15:35:34 +01:00
2026-03-31 16:54:49 +02:00
2024-10-27 17:03:40 -06:00
2026-03-31 16:54:11 +02:00
2025-07-24 13:30:20 -06:00
2026-02-17 13:50:22 -06:00
2026-04-27 11:26:40 -06:00
2025-07-10 19:26:56 +02:00
2025-07-10 19:26:55 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2021-09-30 09:08:16 -04:00
2024-01-29 22:35:02 -05:00
2026-04-07 11:32:56 -06:00
2025-10-27 11:12:56 +00:00
2024-05-20 13:35:03 -06:00
2025-03-03 14:18:49 +08:00
2024-05-20 13:35:03 -06:00
2026-04-23 11:49:48 +02:00
2025-07-24 08:54:16 +02:00
2023-07-21 09:00:38 +02:00
2024-05-20 13:35:03 -06:00
2026-04-23 11:52:18 +02:00