diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2018-12-31 22:04:36 +0100 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2019-01-01 10:49:43 +0100 |
commit | 6b95c49d8e2b0bea8b2edcf13827e37e477fb19e (patch) | |
tree | 3f389ec45348f0593525c9c019c0b0e9068e5bfb /extra-modules.mk | |
parent | 7118ba34931d27f538c71c1cd355866f8db83f4e (diff) | |
download | glibc-6b95c49d8e2b0bea8b2edcf13827e37e477fb19e.tar.gz |
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.
(cherry picked from commit b50dd3bc8cbb1efe85399b03d7e6c0310c2ead84)
Diffstat (limited to 'extra-modules.mk')
0 files changed, 0 insertions, 0 deletions