glibc/malloc
Florian Weimer 768c83b7f6 Remove incorrect alloc_size attribute from pvalloc [BZ #25401]
pvalloc is guarantueed to round up the allocation size to the page
size, so applications can assume that the memory region is larger
than the passed-in argument.  The alloc_size attribute cannot express
that.

The test case is based on a suggestion from Jakub Jelinek.

This fixes commit 9bf8e29ca1 ("malloc:
make malloc fail with requests larger than PTRDIFF_MAX (BZ#23741)").

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2020-01-17 15:05:34 +01:00
..
Depend
Makefile Remove incorrect alloc_size attribute from pvalloc [BZ #25401] 2020-01-17 15:05:34 +01:00
Versions
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
dynarray-skeleton.c
dynarray.h
dynarray_at_failure.c
dynarray_emplace_enlarge.c
dynarray_finalize.c
dynarray_resize.c
dynarray_resize_clear.c
hooks.c
malloc-hooks.h
malloc-internal.h
malloc.c
malloc.h Remove incorrect alloc_size attribute from pvalloc [BZ #25401] 2020-01-17 15:05:34 +01:00
mallocbug.c
mcheck-init.c
mcheck.c
mcheck.h
memusage.c
memusage.sh Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
memusagestat.c Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
morecore.c
mtrace.c
mtrace.pl Update copyright dates not handled by scripts/update-copyrights. 2020-01-01 00:21:22 +00:00
obstack.c
obstack.h
reallocarray.c
scratch_buffer_grow.c
scratch_buffer_grow_preserve.c
scratch_buffer_set_array_size.c
set-freeres.c
thread-freeres.c
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 elf: Move vDSO setup to rtld (BZ#24967) 2020-01-03 11:22:07 -03:00
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-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-malloc_info.c
tst-mallocfork.c
tst-mallocfork2.c
tst-mallocstate.c
tst-mallopt.c
tst-mcheck.c
tst-memalign.c
tst-mtrace.c
tst-mtrace.sh
tst-mxfast.c
tst-obstack.c
tst-posix_memalign.c
tst-pvalloc-fortify.c Remove incorrect alloc_size attribute from pvalloc [BZ #25401] 2020-01-17 15:05:34 +01:00
tst-pvalloc.c
tst-realloc.c
tst-reallocarray.c
tst-scratch_buffer.c
tst-tcfree1.c
tst-tcfree2.c
tst-tcfree3.c
tst-trim1.c
tst-valloc.c