• J
    util: fix off-by-one when expanding a bitmap · 4a41cf18
    Ján Tomko 提交于
    To make sure bit 'b' fits into the bitmap, we need to allocate b+1
    bits, since we number from 0.
    
    Adjust the bitmap test to set a bit at a multiple of 16.
    That way the test fails without this fix, because the VIR_REALLOC
    call clears the newly added memory even if the original pointer
    has not changed.
    4a41cf18
virbitmap.c 24.8 KB