
2 Oct
2023
2 Oct
'23
3:16 a.m.
On Thu, 28 Sept 2023 at 18:47, Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
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
drivers/serial/serial-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org