[ovs-git] [openvswitch/ovs] 05901b: id-pool: Fix allocation overflow and the leak of t...

GitHub noreply at github.com
Thu Jul 13 22:51:11 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 05901b912531886c1b9e092a8fd95d987e0a9e0a
      https://github.com/openvswitch/ovs/commit/05901b912531886c1b9e092a8fd95d987e0a9e0a
  Author: Zhou Yangchao <1028519445 at qq.com>
  Date:   2017-07-13 (Thu, 13 Jul 2017)

  Changed paths:
    M AUTHORS.rst
    M lib/id-pool.c

  Log Message:
  -----------
  id-pool: Fix allocation overflow and the leak of the first ID.

The range of IDs should be [base, base + n_ids),
but id_pool_alloc_id() allocated the range of IDs is [base, base + n_ids].
And id_pool_free_id() cannot free the ID value base correctly.

Signed-off-by: Yangchao Zhou <zhouyates at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list