Re: [lxc-devel] [PATCH] coverity: ifr_name buffer not NULL terminated

2013-10-29 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > The kernel (net/core/dev_ioctl.c:dev_ioctl()) is going to NULL terminate > this name after the copy-in of the ifr, so even though this is a fixed > sized array the last byte isn't usable as part of the name. All the ioctls > we're using go through t

[lxc-devel] [PATCH] coverity: ifr_name buffer not NULL terminated

2013-10-29 Thread Dwight Engen
The kernel (net/core/dev_ioctl.c:dev_ioctl()) is going to NULL terminate this name after the copy-in of the ifr, so even though this is a fixed sized array the last byte isn't usable as part of the name. All the ioctls we're using go through this code path. Use the ifr name in the DEBUG message in