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

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


  Branch: refs/heads/branch-2.1
  Home:   https://github.com/openvswitch/ovs
  Commit: 0060562759a2714e8910149d0c2534c62008ed8a
      https://github.com/openvswitch/ovs/commit/0060562759a2714e8910149d0c2534c62008ed8a
  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