[ovs-git] [openvswitch/ovs] d0485f: ofproto: Fix crash processing malformed Bundle Add...

GitHub noreply at github.com
Thu May 10 23:45:43 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: d0485f488f68e4a40e9aa7df4ebca853d7264441
      https://github.com/openvswitch/ovs/commit/d0485f488f68e4a40e9aa7df4ebca853d7264441
  Author: Anju Thomas <anju.thomas at ericsson.com>
  Date:   2018-05-10 (Thu, 10 May 2018)

  Changed paths:
    M ofproto/bundles.h
    M ofproto/ofproto.c

  Log Message:
  -----------
  ofproto: Fix crash processing malformed Bundle Add message.

When an OpenFlow Bundle Add message is received, a bundle entry is
created and the OpenFlow message embedded in the bundle add message is
processed.  If any error is encountered while processing the embedded
message, the bundle entry is freed. The bundle entry free function
assumes that the entry has been populated with a properly formatted
OpenFlow message and performs some message specific cleanup actions .
This assumption does not hold true in the error case and OVS crashes
when performing the cleanup.

The fix is in case of errors, simply free the bundle entry without
attempting to perform any embedded message cleanup

Signed-off-by: Anju Thomas <anju.thomas at ericsson.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list