commit | cd16085344f3e12226f302d231d5a0f9a8ba7609 | [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 | 0cdd4cb6dcac3e3b5ba12adcc242743421d2aa8c [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>