[ovs-dev] [coverity 10/14] netdev-linux: Use ovs_strlcpy() instead of improper strncpy().

Ben Pfaff blp at nicira.com
Tue Feb 22 17:43:19 UTC 2011


On Mon, Feb 21, 2011 at 05:44:53PM -0800, Justin Pettit wrote:
> Coverity #10697,10696,10695,10694,10693,10692,10691,10690

I'd prefer to use strncpy() here instead of ovs_strlcpy() because the
former initializes every byte in the buffer.  If we don't do that then
I imagine we will get some complaints from valgrind.

The kernel has to handle this right or it's a horrible security bug
anyway.




More information about the dev mailing list