[PATCH] net: ti: am65-cpsw: Fix buffer overflow

Tom Rini trini at konsulko.com
Fri Apr 12 04:12:45 CEST 2024


On Wed, 03 Apr 2024 16:31:55 +0200, Michael Walle wrote:

> The device name is a concatenation of the device node name of the cpsw
> device and of the device node name of the port. In my case that is
> 
>   ethernet at 8000000
>   port at 1
> 
> First the buffer is really too small, but more importantly, there is no
> boundary check. Use snprintf() and increase the buffer size.
> 
> [...]

Applied to u-boot/master, thanks!

-- 
Tom




More information about the U-Boot mailing list