diff options
author | Maxime Peim <mpeim@cisco.com> | 2023-01-18 10:57:31 +0000 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2023-01-20 16:48:21 +0000 |
commit | 6080ed6341d4752fc7327a145b73f6066215eaf5 (patch) | |
tree | 9f3015b55e5769c56975538638c0ccae99de2997 /src/plugins/acl | |
parent | 8bd4db5996ba1144f659ea5341f1c2727c650bcd (diff) |
vppinfra: clib_bitmap fix
In clib_bitmap_set_region and clib_bitmap_set_multiple the index of
the last bit to set was off by 1. If this index was pointing to the
last bit of the bitmap, another uword would have been allocated,
even though it was unnecessary.
Moreover, in clib_bitmap_set_region, bits in the last word were not
properly set. Indeed, the n_bits_left value is wrong since n_bits
is not decreased by the number of already set bits.
Type: fix
Signed-off-by: Maxime Peim <mpeim@cisco.com>
Change-Id: I8d7ef6f47abb9f1f64f38297da2c59509d74dd72
Diffstat (limited to 'src/plugins/acl')
0 files changed, 0 insertions, 0 deletions