Re: [PATCH v2 01/16] sandbox: net: Ensure host name is always a valid string

2021-07-16 Thread Tom Rini
On Thu, May 13, 2021 at 07:39:17PM -0600, Simon Glass wrote: > 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 > Reported-by: Coverity (CID: 316358) > Acked-by: Ramon Fried

Re: [PATCH v2 01/16] sandbox: net: Ensure host name is always a valid string

2021-05-15 Thread Ramon Fried
On Fri, May 14, 2021 at 4:40 AM Simon Glass wrote: > > 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 > Reported-by: Coverity (CID: 316358) > --- > > Changes in v2: > - Put 'R

[PATCH v2 01/16] sandbox: net: Ensure host name is always a valid string

2021-05-13 Thread Simon Glass
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 Reported-by: Coverity (CID: 316358) --- Changes in v2: - Put 'Reported-by:' after the sign-off drivers/net/sandbox-raw.c | 2 +- 1