2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

fix overflow error in mem_putstats()

an integer overflow could cause an assertion failure when
freeing memory.
This commit is contained in:
Evan Hunt
2022-08-08 11:42:07 -07:00
parent 870d01ce29
commit 9d9bd3ace2
2 changed files with 4 additions and 1 deletions

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);