]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: net: Ensure host name is always a valid string
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:17 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commit9d9bec216d4207b3f3336eda2ca2ba73698574cb
treed59cbaf9c97e71f1e0770ebad73ea64e8ca63c5e
parentd3fc3da9a4fb98104d004b025149ec6dadccc2cd
sandbox: net: Ensure host name is always a valid string

At present if ifname is exactly IFNAMSIZ characters then it will result
in an unterminated string. Fix this by using strlcpy() instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 316358)
Acked-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/sandbox-raw.c