From 2acd01acb10d0c0113f87bf7e787e0854498269d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 19 May 2007 04:42:52 +0000 Subject: * malloc/malloc.c (do_check_chunk): Correct check for mmaped block not overlapping with arena. --- malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc/malloc.c') diff --git a/malloc/malloc.c b/malloc/malloc.c index e061db94d6..d37d920cd1 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -2572,7 +2572,7 @@ static void do_check_chunk(av, p) mstate av; mchunkptr p; #if HAVE_MMAP /* address is outside main heap */ if (contiguous(av) && av->top != initial_top(av)) { - assert(((char*)p) < min_address || ((char*)p) > max_address); + assert(((char*)p) < min_address || ((char*)p) >= max_address); } /* chunk is page-aligned */ assert(((p->prev_size + sz) & (mp_.pagesize-1)) == 0); -- cgit v1.2.3