2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +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

@@ -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 5937. [cleanup] The dns_rdatalist_tordataset() and
dns_rdatalist_fromrdataset() functions can no dns_rdatalist_fromrdataset() functions can no
longer fail. Clean up their prototypes and error 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 static void
mem_putstats(isc_mem_t *ctx, void *ptr, size_t size) { mem_putstats(isc_mem_t *ctx, void *ptr, size_t size) {
struct stats *stats = stats_bucket(ctx, size); struct stats *stats = stats_bucket(ctx, size);
uint_fast32_t s, g; atomic_size_t s, g;
UNUSED(ptr); UNUSED(ptr);