diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-11-19 06:38:37 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-11-19 06:38:37 +0000 |
commit | 802ea9dccd5871d65513488d9ce9e3f0a8021177 (patch) | |
tree | a8885e4de7e6f60c5ba5fd5ea3fc2c245aa3eea8 /malloc | |
parent | 788b3f7f39d160722f5cafc2e8fc8dad668f6725 (diff) | |
download | glibc-802ea9dccd5871d65513488d9ce9e3f0a8021177.tar.gz glibc-802ea9dccd5871d65513488d9ce9e3f0a8021177.tar.xz glibc-802ea9dccd5871d65513488d9ce9e3f0a8021177.zip |
chunksize(x) => x->size
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index ca7c7e59bc..c2ec82d0c8 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4233,7 +4233,7 @@ _int_free(mstate av, Void_t* mem) #endif ) { - if (__builtin_expect (chunksize (chunk_at_offset (p, size)) <= 2 * SIZE_SZ, + if (__builtin_expect (chunk_at_offset (p, size)->size <= 2 * SIZE_SZ, 0) || __builtin_expect (chunksize (chunk_at_offset (p, size)) >= av->system_mem, 0)) @@ -4285,7 +4285,7 @@ _int_free(mstate av, Void_t* mem) } nextsize = chunksize(nextchunk); - if (__builtin_expect (nextsize <= 2 * SIZE_SZ, 0) + if (__builtin_expect (nextchunk->size <= 2 * SIZE_SZ, 0) || __builtin_expect (nextsize >= av->system_mem, 0)) { errstr = "invalid next size (normal)"; |