glibc/malloc
Florian Weimer b50dd3bc8c 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.
2018-12-31 22:09:37 +01:00
..
alloc_buffer_alloc_array.c Replace check_mul_overflow_size_t with __builtin_mul_overflow 2018-12-28 15:39:45 -02:00
alloc_buffer_allocate.c
alloc_buffer_copy_bytes.c
alloc_buffer_copy_string.c
alloc_buffer_create_failure.c
arena.c malloc: Convert the unlink macro to the unlink_chunk function 2018-11-12 14:35:06 +01:00
Depend
dynarray_at_failure.c
dynarray_emplace_enlarge.c Replace check_mul_overflow_size_t with __builtin_mul_overflow 2018-12-28 15:39:45 -02:00
dynarray_finalize.c
dynarray_resize_clear.c
dynarray_resize.c Replace check_mul_overflow_size_t with __builtin_mul_overflow 2018-12-28 15:39:45 -02:00
dynarray-skeleton.c
dynarray.h
hooks.c malloc: Update heap dumping/undumping comments [BZ #23351] 2018-06-29 14:55:15 +02:00
Makefile malloc: Add another test for tcache double free check. 2018-12-07 19:34:47 -05:00
malloc-hooks.h
malloc-internal.h Replace check_mul_overflow_size_t with __builtin_mul_overflow 2018-12-28 15:39:45 -02:00
malloc.c malloc: Always call memcpy in _int_realloc [BZ #24027] 2018-12-31 22:09:37 +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
reallocarray.c Replace check_mul_overflow_size_t with __builtin_mul_overflow 2018-12-28 15:39:45 -02:00
scratch_buffer_grow_preserve.c
scratch_buffer_grow.c
scratch_buffer_set_array_size.c
set-freeres.c libc: Extend __libc_freeres framework (Bug 23329). 2018-06-29 22:39:06 -04:00
thread-freeres.c libc: Extend __libc_freeres framework (Bug 23329). 2018-06-29 22:39:06 -04:00
tst-alloc_buffer.c
tst-calloc.c
tst-dynarray-at-fail.c
tst-dynarray-fail.c
tst-dynarray-shared.h
tst-dynarray.c
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_info.c
tst-malloc-backtrace.c
tst-malloc-fork-deadlock.c
tst-malloc-stats-cancellation.c
tst-malloc-tcache-leak.c
tst-malloc-thread-exit.c
tst-malloc-thread-fail.c
tst-malloc-too-large.c
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-reallocarray.c
tst-scratch_buffer.c
tst-tcfree1.c malloc: tcache double free check 2018-11-20 13:24:09 -05:00
tst-tcfree2.c malloc: tcache double free check 2018-11-20 13:24:09 -05:00
tst-tcfree3.c malloc: Add another test for tcache double free check. 2018-12-07 19:34:47 -05:00
tst-trim1.c
tst-valloc.c
Versions