diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-11-16 08:55:38 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-11-16 08:55:38 +0000 |
commit | 4e2e518f6a0ca001e13c06d7463fb179e1e96124 (patch) | |
tree | 1e6a602f3214d05dc598738f566380dcffa3106b /malloc | |
parent | 8c508c82e7ded8bb87e2784e25be9d9f8871d6b9 (diff) | |
download | glibc-4e2e518f6a0ca001e13c06d7463fb179e1e96124.tar.gz glibc-4e2e518f6a0ca001e13c06d7463fb179e1e96124.tar.xz glibc-4e2e518f6a0ca001e13c06d7463fb179e1e96124.zip |
MINSIZE => 2 * SIZE_SZ
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index f4612046cd..323ad84663 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4233,7 +4233,8 @@ _int_free(mstate av, Void_t* mem) #endif ) { - if (__builtin_expect (chunksize (chunk_at_offset (p, size)) < MINSIZE, 0) + if (__builtin_expect (chunksize (chunk_at_offset (p, size)) < 2 * SIZE_SZ, + 0) || __builtin_expect (chunksize (chunk_at_offset (p, size)) >= av->system_mem, 0)) { |