]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix off-by-one error when calculating new hashtable size
authorOndřej Surý <ondrej@sury.org>
Fri, 28 Aug 2020 07:30:29 +0000 (09:30 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 28 Aug 2020 18:43:38 +0000 (20:43 +0200)
commit2b08ff879a445584ca39201523c161048f4c79cd
tree73fa17399cfe699e624f6bdae3df50c93a007d87
parent0d964dfc4b00d8349f7e1919e943399bbc5e8a64
Fix off-by-one error when calculating new hashtable size

When calculating the new hashtable bitsize, there was an off-by-one
error that would allow the new bitsize to be larger than maximum allowed
causing assertion failure in the rehash() function.

(cherry picked from commit 78543ad5a7731e5f3a309c73e90a552df1a44af1)
lib/dns/rbt.c