summaryrefslogtreecommitdiff
path: root/ctype
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2018-12-31 22:04:36 +0100
committerFlorian Weimer <fw@deneb.enyo.de>2019-01-01 10:49:43 +0100
commit6b95c49d8e2b0bea8b2edcf13827e37e477fb19e (patch)
tree3f389ec45348f0593525c9c019c0b0e9068e5bfb /ctype
parent7118ba34931d27f538c71c1cd355866f8db83f4e (diff)
downloadglibc-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 'ctype')
0 files changed, 0 insertions, 0 deletions