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:
3
CHANGES
3
CHANGES
@@ -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
|
||||
|
@@ -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