[ovs-git] [openvswitch/ovs] 8ef403: pktbuf: Always initialize '*bufferp' even when 'pb...

GitHub noreply at github.com
Mon Jan 19 18:10:22 UTC 2015


  Branch: refs/heads/branch-1.9
  Home:   https://github.com/openvswitch/ovs
  Commit: 8ef40319f430f19a41148e622189f1930737490d
      https://github.com/openvswitch/ovs/commit/8ef40319f430f19a41148e622189f1930737490d
  Author: Ben Pfaff <blp at nicira.com>
  Date:   2015-01-19 (Mon, 19 Jan 2015)

  Changed paths:
    M ofproto/pktbuf.c

  Log Message:
  -----------
  pktbuf: Always initialize '*bufferp' even when 'pb == NULL'.

Otherwise if a service connection (which does not have buffers) attempts
to use buffers, '*bufferp' will be uninitialized, which can cause a
segfault in the caller.

Found using OFtest configured to use service (active rather than passive)
connections.

Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Thomas Graf <tgraf at noironetworks.com>




More information about the git mailing list