Heinrich Schuchardt 6a1e0ae43e dm: serial: fix serial_post_probe()
The size of the name of a udevice is not limited.

When setting the fixed sized name field of a stdio device we must ensure
that the target string is NUL terminated to avoid buffer overflows.

Fixes: 57d92753d4ca ("dm: Add a uclass for serial devices")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-10-09 15:24:31 -04:00
..
2022-12-23 10:15:13 -05:00
2023-05-21 16:54:41 +02:00
2021-12-31 06:45:01 +01:00
2023-05-21 16:54:41 +02:00
2022-06-06 18:01:21 -04:00