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

[9.16] correctly limit hash resize to RBTDB_GLUE_TABLE_MAX_BITS

See merge request isc-projects/bind9!8552
This commit is contained in:
Evan Hunt
2023-12-06 20:15:31 +00:00
+1 -1
View File
@@ -10070,7 +10070,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;
}