|
From: <sv...@va...> - 2016-10-17 16:08:23
|
Author: sewardj
Date: Mon Oct 17 17:08:17 2016
New Revision: 16048
Log:
Merge, from trunk:
16024 Fix n-i-bz bug in auto free pool: a block using the last byte
of the meta pool was not auto-freed.
Modified:
branches/VALGRIND_3_12_BRANCH/ (props changed)
branches/VALGRIND_3_12_BRANCH/memcheck/mc_malloc_wrappers.c
Modified: branches/VALGRIND_3_12_BRANCH/memcheck/mc_malloc_wrappers.c
==============================================================================
--- branches/VALGRIND_3_12_BRANCH/memcheck/mc_malloc_wrappers.c (original)
+++ branches/VALGRIND_3_12_BRANCH/memcheck/mc_malloc_wrappers.c Mon Oct 17 17:08:17 2016
@@ -698,7 +698,7 @@
VG_(HT_ResetIter)(MC_(malloc_list));
while (!found && (mc = VG_(HT_Next)(MC_(malloc_list))) ) {
- if (mc->data >= StartAddr && mc->data + mc->szB < EndAddr) {
+ if (mc->data >= StartAddr && mc->data + mc->szB <= EndAddr) {
if (VG_(clo_verbosity) > 2) {
VG_(message)(Vg_UserMsg, "Auto-free of 0x%lx size=%lu\n",
mc->data, (mc->szB + 0UL));
|