glibc/malloc
Florian Weimer 22b7478755 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 b50dd3bc8c)
2019-01-01 10:32:37 +01:00
..
arena.c malloc: Preserve arena free list/thread count invariant [BZ #20370] 2016-08-04 11:49:55 +02:00
Depend
hooks.c malloc: Correct malloc alignment on 32-bit architectures [BZ #6527] 2016-05-24 08:05:15 +02:00
Makefile Revert __malloc_initialize_hook symbol poisoning 2016-06-20 11:11:29 +02:00
malloc-hooks.h Revert __malloc_initialize_hook symbol poisoning 2016-06-20 11:11:29 +02:00
malloc-internal.h malloc: Adjust header file guard in malloc-internal.h 2016-05-04 15:27:15 +02:00
malloc.c malloc: Always call memcpy in _int_realloc [BZ #24027] 2019-01-01 10:32:37 +01:00
malloc.h malloc: Remove __malloc_initialize_hook from the API [BZ #19564] 2016-06-10 10:46:05 +02:00
mallocbug.c Reformat malloc to gnu style. 2014-01-02 09:40:10 +01:00
mcheck-init.c Revert __malloc_initialize_hook symbol poisoning 2016-06-20 11:11:29 +02:00
mcheck.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mcheck.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memusage.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memusage.sh Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
memusagestat.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
morecore.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mtrace.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mtrace.pl Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
obstack.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
obstack.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
scratch_buffer_grow_preserve.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
scratch_buffer_grow.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
scratch_buffer_set_array_size.c scratch_buffer_set_array_size: Include <limits.h> 2016-04-07 13:46:28 +02:00
set-freeres.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
thread-freeres.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-calloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-malloc-backtrace.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-malloc-fork-deadlock.c malloc: Run fork handler as late as possible [BZ #19431] 2016-04-14 09:17:02 +02:00
tst-malloc-thread-exit.c tst-malloc-thread-exit: Use fewer system resources 2016-02-19 14:12:56 +01:00
tst-malloc-thread-fail.c Bump up tst-malloc-thread-fail timeout from 20 to 30s 2016-07-05 17:05:28 -04:00
tst-malloc-usable.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-malloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mallocfork2.c test-skeleton.c: Add write_message function 2016-06-23 11:00:36 +02:00
tst-mallocfork.c
tst-mallocstate.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mallopt.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mcheck.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-memalign.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mtrace.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mtrace.sh Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
tst-obstack.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-posix_memalign.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-pvalloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-realloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-scratch_buffer.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-trim1.c
tst-valloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Versions Add struct scratch_buffer and its internal helper functions 2015-04-07 11:03:43 +02:00