[PATCH 1/2] dm: serial: fix serial_post_probe()

Simon Glass sjg at chromium.org
Mon Oct 2 03:16:45 CEST 2023


On Thu, 28 Sept 2023 at 18:47, Heinrich Schuchardt
<heinrich.schuchardt at 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 at canonical.com>
> ---
>  drivers/serial/serial-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list