2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Merge branch '3483-memstat-assertion' into 'main'

fix overflow error in mem_putstats()

Closes #3483

See merge request isc-projects/bind9!6641
This commit is contained in:
Evan Hunt
2022-08-09 18:20:11 +00:00
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
5938. [bug] An integer type overflow could cause an assertion
failure when freeing memory. [GL #3483]
5937. [cleanup] The dns_rdatalist_tordataset() and
dns_rdatalist_fromrdataset() functions can no
longer fail. Clean up their prototypes and error

View File

@@ -414,7 +414,7 @@ mem_getstats(isc_mem_t *ctx, size_t size) {
static void
mem_putstats(isc_mem_t *ctx, void *ptr, size_t size) {
struct stats *stats = stats_bucket(ctx, size);
uint_fast32_t s, g;
atomic_size_t s, g;
UNUSED(ptr);