[ovs-git] [openvswitch/ovs] 874295: userspace: Replace all uses of strncpy() by ovs_st...

GitHub noreply at github.com
Fri Feb 20 20:32:43 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8742957c2b5f65af4507c4345f7ccf177ae1361b
      https://github.com/openvswitch/ovs/commit/8742957c2b5f65af4507c4345f7ccf177ae1361b
  Author: Ben Pfaff <blp at nicira.com>
  Date:   2015-02-20 (Fri, 20 Feb 2015)

  Changed paths:
    M lib/netdev-bsd.c
    M lib/ovs-router.c
    M lib/tnl-arp-cache.c
    M lib/tnl-ports.c
    M ofproto/ofproto-dpif-xlate.c

  Log Message:
  -----------
  userspace: Replace all uses of strncpy() by ovs_strlcpy().

strncpy() has a lot of pitfalls.  A while back we replaced all its uses by
calls to ovs_strlcpy() or ovs_strzcpy(), but some more have crept in.  This
commit fixes them.

Reported-by: Russell Bryant <rbryant at redhat.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Thomas Graf <tgraf at noironetworks.com>




More information about the git mailing list