glibc/malloc
Siddhesh Poyarekar 01bffc013c Handle NULL input to malloc_usable_size [BZ #28506]
Hoist the NULL check for malloc_usable_size into its entry points in
malloc-debug and malloc and assume non-NULL in all callees.  This fixes
BZ #28506

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
(cherry picked from commit 88e316b064)
2021-10-29 14:56:53 +05:30
..
alloc_buffer_alloc_array.c
alloc_buffer_allocate.c
alloc_buffer_copy_bytes.c
alloc_buffer_copy_string.c
alloc_buffer_create_failure.c
arena.c misc: Add __get_nprocs_sched 2021-10-01 18:19:09 +02:00
Depend
dynarray_at_failure.c
dynarray_emplace_enlarge.c
dynarray_finalize.c
dynarray_resize_clear.c
dynarray_resize.c
dynarray-skeleton.c
dynarray.h
hooks.c Remove malloc hooks [BZ #23328] 2021-07-22 18:38:12 +05:30
Makefile Exclude static tests for mcheck and malloc-check 2021-07-26 10:47:46 +05:30
malloc-check.c Fix build and tests with --disable-tunables 2021-07-23 13:57:56 +05:30
malloc-debug.c Handle NULL input to malloc_usable_size [BZ #28506] 2021-10-29 14:56:53 +05:30
malloc-internal.h Add a generic malloc test for MALLOC_ALIGNMENT 2021-07-09 06:39:30 -07:00
malloc.c Handle NULL input to malloc_usable_size [BZ #28506] 2021-10-29 14:56:53 +05:30
malloc.h Remove malloc hooks [BZ #23328] 2021-07-22 18:38:12 +05:30
mallocbug.c
mcheck-impl.c mcheck Fix malloc_usable_size [BZ #22057] 2021-07-22 18:38:16 +05:30
mcheck-init.c
mcheck.c mcheck: Wean away from malloc hooks [BZ #23489] 2021-07-22 18:38:02 +05:30
mcheck.h
memusage.c
memusage.sh Remove all usage of @BASH@ or ${BASH} in installed files, and hardcode /bin/bash instead 2021-05-12 07:47:11 +05:30
memusagestat.c
morecore.c Remove __morecore and __default_morecore 2021-07-22 18:37:57 +05:30
mtrace-impl.c mtrace: Wean away from malloc hooks 2021-07-22 18:38:06 +05:30
mtrace.c mtrace: Wean away from malloc hooks 2021-07-22 18:38:06 +05:30
mtrace.pl
obstack.c
obstack.h
reallocarray.c
scratch_buffer_dupfree.c
scratch_buffer_grow_preserve.c
scratch_buffer_grow.c
scratch_buffer_set_array_size.c
set-freeres.c nptl: Move stack cache management, __libpthread_freeres into libc 2021-05-11 11:22:33 +02:00
thread-freeres.c dlfcn: dlerror needs to call free from the base namespace [BZ #24773] 2021-04-21 19:49:51 +02:00
tst-alloc_buffer.c
tst-calloc.c
tst-compathooks-off.c Move malloc hooks into a compat DSO 2021-07-22 18:37:59 +05:30
tst-compathooks-on.c Move malloc hooks into a compat DSO 2021-07-22 18:37:59 +05:30
tst-dynarray-at-fail.c
tst-dynarray-fail.c
tst-dynarray-shared.h
tst-dynarray.c
tst-free-errno.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-mallinfo2.c tst-mallinfo2.c: Use correct multiple for total variable 2021-05-25 16:47:01 -04:00
tst-malloc_info.c
tst-malloc-backtrace.c
tst-malloc-check.c tst-mcheck: Rename to tst-malloc-check 2021-06-22 14:31:40 +05:30
tst-malloc-fork-deadlock.c
tst-malloc-stats-cancellation.c malloc: Run tst-malloc-stats-cancellation via test-driver.c 2021-04-07 02:35:50 +02:00
tst-malloc-tcache-leak.c
tst-malloc-thread-exit.c
tst-malloc-thread-fail.c
tst-malloc-too-large.c
tst-malloc-usable-tunables.c
tst-malloc-usable.c Handle NULL input to malloc_usable_size [BZ #28506] 2021-10-29 14:56:53 +05:30
tst-malloc.c
tst-mallocalign1.c Add a generic malloc test for MALLOC_ALIGNMENT 2021-07-09 06:39:30 -07:00
tst-mallocfork2.c
tst-mallocfork3.c posix: Add _Fork [BZ #4737] 2021-06-28 15:55:56 -03:00
tst-mallocfork.c
tst-mallocstate.c
tst-mallopt.c
tst-memalign.c
tst-mtrace.c
tst-mtrace.sh Move malloc hooks into a compat DSO 2021-07-22 18:37:59 +05:30
tst-mxfast.c
tst-obstack.c
tst-posix_memalign.c
tst-pvalloc-fortify.c
tst-pvalloc.c
tst-realloc.c
tst-reallocarray.c
tst-safe-linking.c tst-safe-linking: make false positives even more improbable 2021-07-19 08:29:25 +05:30
tst-scratch_buffer.c
tst-tcfree1.c
tst-tcfree2.c
tst-tcfree3.c
tst-trim1.c
tst-valloc.c
Versions Move malloc_{g,s}et_state to libc_malloc_debug 2021-07-22 18:38:10 +05:30