summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/test_pool_alloc.c
AgeCommit message (Collapse)AuthorFilesLines
2023-03-19vppinfra: fix pool free bitmap allocationVladislav Grishenko1-0/+56
Using clib_bitmap_vec_validate makes free bitmap vector to be x64 times bigger (assuming x86_64) than necessary when non-zero and possible oom due (u32)(0 - 1) math with zero alloc. Fix it with clib_bitmap_validate which takes bit size, not index and ensure at least one bit is allocated. Type: fix Change-Id: I7e191f4e2fb3722a06bb800e1d075f7c7e2dcec9 Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>