mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
MINSIZE => 2 * SIZE_SZ
This commit is contained in:
parent
8c508c82e7
commit
4e2e518f6a
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user