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

2025-07-24 Thread Tom Rini
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 overf

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

2025-07-17 Thread Andrew Goodbody
Instead of strcpy which is unbounded use strlcpy to ensure that the receiving buffer cannot be overflowed. This issue found by Smatch. Signed-off-by: Andrew Goodbody --- drivers/net/sandbox-raw-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sandbox-raw-bus