]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
When using a custom allocator that allocates with no intervening
authorJulian Seward <jseward@acm.org>
Sun, 18 Dec 2005 02:37:50 +0000 (02:37 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 18 Dec 2005 02:37:50 +0000 (02:37 +0000)
blocks, the <= relation is the correct one.  In effect asserting <
constitutes an off-by-one error.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5366

memcheck/mac_leakcheck.c

index 1d9a1261594767cde43d24f622ce9792fe8ee965..63c982d77650bf7c21a8359ea8fc7ee2f0af66c8 100644 (file)
@@ -702,7 +702,7 @@ void MAC_(do_detect_memory_leaks) (
    /* Sanity check -- make sure they don't overlap */
    for (i = 0; i < lc_n_shadows-1; i++) {
       tl_assert( lc_shadows[i]->data + lc_shadows[i]->size
-                 < lc_shadows[i+1]->data );
+                 <= lc_shadows[i+1]->data );
    }
 
    if (lc_n_shadows == 0) {