[PATCH] sandbox: eth-raw: Prevent possible buffer overflow

Tom Rini trini at konsulko.com
Thu Jul 24 23:30:32 CEST 2025


On Thu, 17 Jul 2025 12:09:15 +0100, Andrew Goodbody wrote:

> Instead of strcpy which is unbounded use strlcpy to ensure that the
> receiving buffer cannot be overflowed.
> 
> This issue found by Smatch.
> 
> 

Applied to u-boot/master, thanks!

[1/1] sandbox: eth-raw: Prevent possible buffer overflow
      commit: 5c0827eededc8392472823d8e3e50cd0f5fad47b
-- 
Tom




More information about the U-Boot mailing list