commit | 6a1e0ae43e2108a88e022103b3b303c9f4964a64 | [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 | 6826c432e35115bbdafc17062733f5030b7f8366 [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>