commit | 9d9bec216d4207b3f3336eda2ca2ba73698574cb | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu May 13 19:39:17 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Jul 15 18:42:05 2021 -0400 |
tree | d59cbaf9c97e71f1e0770ebad73ea64e8ca63c5e | |
parent | d3fc3da9a4fb98104d004b025149ec6dadccc2cd [diff] |
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>