Merge branch '3498-glue-rehash-overflow' into 'bind-9.18'

correctly limit hash resize to RBTDB_GLUE_TABLE_MAX_BITS

See merge request isc-projects/bind9!8465
This commit is contained in:
Evan Hunt 2023-12-06 19:44:40 +00:00
commit 4ee01a8b5a

View file

@ -9640,7 +9640,7 @@ rehash_bits(rbtdb_version_t *version, size_t newcount) {
uint32_t newbits = oldbits;
while (newcount >= HASHSIZE(newbits) &&
newbits <= RBTDB_GLUE_TABLE_MAX_BITS)
newbits < RBTDB_GLUE_TABLE_MAX_BITS)
{
newbits += 1;
}