mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
3351. [bug] isc_mem_put and isc_mem_putanddetach didn't report
caller if either ISC_MEM_DEBUGSIZE or ISC_MEM_DEBUGCTX memory debugging flags are set. [RT #30243]
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
|||||||
|
3351. [bug] isc_mem_put and isc_mem_putanddetach didn't report
|
||||||
|
caller if either ISC_MEM_DEBUGSIZE or ISC_MEM_DEBUGCTX
|
||||||
|
memory debugging flags are set. [RT #30243]
|
||||||
|
|
||||||
3350. [bug] Memory read overrun in isc___mem_reallocate if
|
3350. [bug] Memory read overrun in isc___mem_reallocate if
|
||||||
ISC_MEM_DEBUGCTX memory debugging flag is set.
|
ISC_MEM_DEBUGCTX memory debugging flag is set.
|
||||||
[RT #30240]
|
[RT #30240]
|
||||||
|
@@ -1197,7 +1197,7 @@ isc___mem_putanddetach(isc_mem_t **ctxp, void *ptr, size_t size FLARG) {
|
|||||||
oldsize -= ALIGNMENT_SIZE;
|
oldsize -= ALIGNMENT_SIZE;
|
||||||
INSIST(oldsize == size);
|
INSIST(oldsize == size);
|
||||||
}
|
}
|
||||||
isc_mem_free((isc_mem_t *)ctx, ptr);
|
isc__mem_free((isc_mem_t *)ctx, ptr FLARG_PASS);
|
||||||
|
|
||||||
MCTXLOCK(ctx, &ctx->lock);
|
MCTXLOCK(ctx, &ctx->lock);
|
||||||
ctx->references--;
|
ctx->references--;
|
||||||
@@ -1333,7 +1333,7 @@ isc___mem_put(isc_mem_t *ctx0, void *ptr, size_t size FLARG) {
|
|||||||
oldsize -= ALIGNMENT_SIZE;
|
oldsize -= ALIGNMENT_SIZE;
|
||||||
INSIST(oldsize == size);
|
INSIST(oldsize == size);
|
||||||
}
|
}
|
||||||
isc_mem_free((isc_mem_t *)ctx, ptr);
|
isc__mem_free((isc_mem_t *)ctx, ptr FLARG_PASS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user