glibc/malloc
Florian Weimer 6b95c49d8e 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:49:43 +01:00
..
alloc_buffer_alloc_array.c Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00
alloc_buffer_allocate.c Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00
alloc_buffer_copy_bytes.c Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00
alloc_buffer_copy_string.c Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00
alloc_buffer_create_failure.c Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00
arena.c
Depend
dynarray_at_failure.c Add internal facility for dynamic array handling 2018-01-04 12:55:54 +01:00
dynarray_emplace_enlarge.c __libc_dynarray_emplace_enlarge: Add missing else 2018-01-04 12:58:45 +01:00
dynarray_finalize.c Add internal facility for dynamic array handling 2018-01-04 12:55:54 +01:00
dynarray_resize_clear.c Add internal facility for dynamic array handling 2018-01-04 12:55:54 +01:00
dynarray_resize.c dynarray: Set errno on overflow-induced allocation failure 2018-01-04 12:58:40 +01:00
dynarray-skeleton.c dynarray: Implement begin/end functions in the spirit of C++ 2018-01-04 12:58:33 +01:00
dynarray.h Add internal facility for dynamic array handling 2018-01-04 12:55:54 +01:00
hooks.c
Makefile Fix integer overflows in internal memalign and malloc [BZ #22343] [BZ #22774] 2018-02-09 12:54:03 +01:00
malloc-hooks.h
malloc-internal.h Add check_mul_overflow_size_t 2018-01-04 12:51:48 +01:00
malloc.c malloc: Always call memcpy in _int_realloc [BZ #24027] 2019-01-01 10:49:43 +01:00
malloc.h
mallocbug.c
mcheck-init.c
mcheck.c
mcheck.h
memusage.c
memusage.sh
memusagestat.c
morecore.c
mtrace.c
mtrace.pl
obstack.c
obstack.h
scratch_buffer_grow_preserve.c
scratch_buffer_grow.c
scratch_buffer_set_array_size.c
set-freeres.c
thread-freeres.c
tst-alloc_buffer.c Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00
tst-calloc.c
tst-dynarray-at-fail.c Add internal facility for dynamic array handling 2018-01-04 12:55:54 +01:00
tst-dynarray-fail.c Add internal facility for dynamic array handling 2018-01-04 12:55:54 +01:00
tst-dynarray-shared.h dynarray: Implement begin/end functions in the spirit of C++ 2018-01-04 12:58:33 +01:00
tst-dynarray.c dynarray: Set errno on overflow-induced allocation failure 2018-01-04 12:58:40 +01:00
tst-interpose-aux-nothread.c
tst-interpose-aux-thread.c
tst-interpose-aux.c
tst-interpose-aux.h
tst-interpose-nothread.c
tst-interpose-skeleton.c
tst-interpose-static-nothread.c
tst-interpose-static-thread.c
tst-interpose-thread.c
tst-malloc-backtrace.c
tst-malloc-fork-deadlock.c
tst-malloc-thread-exit.c
tst-malloc-thread-fail.c
tst-malloc-too-large.c Fix integer overflows in internal memalign and malloc [BZ #22343] [BZ #22774] 2018-02-09 12:54:03 +01:00
tst-malloc-usable-static-tunables.c
tst-malloc-usable-static.c
tst-malloc-usable-tunables.c
tst-malloc-usable.c
tst-malloc.c
tst-mallocfork2.c
tst-mallocfork.c
tst-mallocstate.c
tst-mallopt.c
tst-mcheck.c
tst-memalign.c
tst-mtrace.c
tst-mtrace.sh
tst-obstack.c
tst-posix_memalign.c
tst-pvalloc.c
tst-realloc.c
tst-scratch_buffer.c
tst-trim1.c
tst-valloc.c
Versions Implement allocation buffers for internal use 2018-01-04 13:01:28 +01:00