[ovs-git] [openvswitch/ovs] aee7f4: ovsdb-idl: Adjust indexes during transactions.

GitHub noreply at github.com
Thu Aug 16 17:37:10 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: aee7f431df925c006d212080db9aa80c9acd0385
      https://github.com/openvswitch/ovs/commit/aee7f431df925c006d212080db9aa80c9acd0385
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-08-16 (Thu, 16 Aug 2018)

  Changed paths:
    M lib/ovsdb-idl.c
    M tests/test-ovsdb.c

  Log Message:
  -----------
  ovsdb-idl: Adjust indexes during transactions.

When transactions modified tables with indexes, the indexes were not
properly updated to reflect the changes.  For deleted rows, in particular,
this could cause use-after-free errors.

This commit fixes the problem and adds some simple test cases provided by
Han Zhou that, without the fix, cause a crash.

Reported-by: Han Zhou <zhouhan at gmail.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-August/047185.html
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **NOTE:** This service has 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