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

GitHub noreply at github.com
Mon Jan 19 18:09:58 UTC 2015


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