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

GitHub noreply at github.com
Mon Jan 19 18:11:32 UTC 2015

  Branch: refs/heads/branch-1.4
  Home:   https://github.com/openvswitch/ovs
  Commit: 0dbab0f8047c18ca042d269c79c1c85ee8c40eeb
  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)

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

More information about the git mailing list