diff options
| author | Francois Berder <[email protected]> | 2026-05-09 22:01:42 +0200 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-06-03 17:22:24 +0200 |
| commit | 919af6e49b1c013e8ed138f16ad2196f66900547 (patch) | |
| tree | 283685ccdd9a4fb66f0600638bf1727e5c22ca47 /programs | |
| parent | 30b77f6aa146c96b831cb4ece038130b655b6a41 (diff) | |
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 <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'programs')
0 files changed, 0 insertions, 0 deletions
