[ovs-git] [openvswitch/ovs] dad69c: socket-util-unix: Avoid buffer read overrun in get...

GitHub noreply at github.com
Thu Sep 15 17:41:38 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: dad69ccb1d3f2da58ea1535feaa13fbf694971b1
      https://github.com/openvswitch/ovs/commit/dad69ccb1d3f2da58ea1535feaa13fbf694971b1
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M lib/socket-util-unix.c

  Log Message:
  -----------
  socket-util-unix: Avoid buffer read overrun in get_unix_name_len().

If the socket length does not include any of the bytes of the path, then
the code should not read even the first byte of the path.

Found by valgrind.

Reported-by: Joe Stringer <joe at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
Acked-by: Joe Stringer <joe at ovn.org>




More information about the git mailing list