commit | 711ad63d7bc1ddc2dd65da283500e64c9bc3b0ed | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Fri Sep 29 02:47:16 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Oct 09 15:24:31 2023 -0400 |
tree | e6e1c1e478ca5a0d9a5be1f14cc5dc9ed6a06bbc | |
parent | 7cd91f7da7ad0807823e633087c5466ac26635d8 [diff] |
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>