about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/tst-align-clone.c
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2018-12-31 22:04:36 +0100
committerFlorian Weimer <fw@deneb.enyo.de>2018-12-31 22:09:37 +0100
commitb50dd3bc8cbb1efe85399b03d7e6c0310c2ead84 (patch)
tree817ec49386ef014ba0a02926c08579408e9c71ce /sysdeps/unix/sysv/linux/tst-align-clone.c
parent0b9c84906f653978fb8768c7ebd0ee14a47e662e (diff)
downloadglibc-b50dd3bc8cbb1efe85399b03d7e6c0310c2ead84.tar.gz
glibc-b50dd3bc8cbb1efe85399b03d7e6c0310c2ead84.tar.xz
glibc-b50dd3bc8cbb1efe85399b03d7e6c0310c2ead84.zip
malloc: Always call memcpy in _int_realloc [BZ #24027]
This commit removes the custom memcpy implementation from _int_realloc
for small chunk sizes.  The ncopies variable has the wrong type, and
an integer wraparound could cause the existing code to copy too few
elements (leaving the new memory region mostly uninitialized).
Therefore, removing this code fixes bug 24027.
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-align-clone.c')
0 files changed, 0 insertions, 0 deletions