CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/05/11 06:14:38

Modified files:
        usr.sbin/bgpd  : bitmap.c 

Log message:
Track the number of elements in the array instead of the highest possible bit.

The bitmap code tracked the maximum number of bits allowed but that could
trigger an overflow in BITMAP_ROUNDUP() for very big bitmaps.
Move the max from tracking bits to tracking the number of elements in the
array covering the bitmap.

Add extra casts in BITMAP_SETPTR() and BITMAP_GETPTR() to stop 32bit archs
warning about a pointer to int case of different size.

OK tb@

Reply via email to