diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-05-19 04:42:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-05-19 04:42:52 +0000 |
commit | 2acd01acb10d0c0113f87bf7e787e0854498269d (patch) | |
tree | 935dc63000c1792166db21151a8197639659f085 /malloc/malloc.c | |
parent | 129abdd3ee8f6388dbf8d786fd243d0560458905 (diff) | |
download | glibc-2acd01acb10d0c0113f87bf7e787e0854498269d.zip glibc-2acd01acb10d0c0113f87bf7e787e0854498269d.tar.gz glibc-2acd01acb10d0c0113f87bf7e787e0854498269d.tar.bz2 |
* malloc/malloc.c (do_check_chunk): Correct check for mmaped block
not overlapping with arena.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r-- | malloc/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index e061db9..d37d920 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); |