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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user