[PATCH 1/2] dm: serial: fix serial_post_probe()
Tom Rini
trini at konsulko.com
Tue Oct 10 14:58:50 CEST 2023
On Fri, Sep 29, 2023 at 02:47:16AM +0200, Heinrich Schuchardt 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>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231010/2ccbf826/attachment.sig>
More information about the U-Boot
mailing list