sandbox: eth-raw: Prevent possible buffer overflow
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 17 Jul 2025 11:09:15 +0000 (12:09 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 24 Jul 2025 19:30:20 +0000 (13:30 -0600)
commit5c0827eededc8392472823d8e3e50cd0f5fad47b
tree0a93e4422494750507e30f19791c9315548992aa
parent70a4d1fa1ddb2f5f8f9a27442563f182549abbb5
sandbox: eth-raw: Prevent possible buffer overflow

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 <andrew.goodbody@linaro.org>
drivers/net/sandbox-raw-bus.c