1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* malloc/malloc.c (do_check_chunk): Correct check for mmaped block

not overlapping with arena.
This commit is contained in:
Ulrich Drepper
2007-05-19 04:42:52 +00:00
parent 129abdd3ee
commit 2acd01acb1
3 changed files with 5 additions and 2 deletions

View File

@ -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);