]> git.ipfire.org Git - thirdparty/glibc.git/commit
Remove incorrect alloc_size attribute from pvalloc [BZ #25401]
authorFlorian Weimer <fweimer@redhat.com>
Fri, 17 Jan 2020 14:11:20 +0000 (15:11 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 17 Jan 2020 14:11:20 +0000 (15:11 +0100)
commit994e529a37953a057b9e6c80afa03b03fd3724f2
tree29f8ce8c45c7cb335b4493b619c47cf533d55aab
parent858069cb60c40c39a65f2d354e518353240d59d0
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 9bf8e29ca136094f73f69f725f15c51facc97206 ("malloc:
make malloc fail with requests larger than PTRDIFF_MAX (BZ#23741)").

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 768c83b7f60d82db6677e19dc51be9f341e0f3fc)
NEWS
malloc/Makefile
malloc/malloc.h
malloc/tst-pvalloc-fortify.c [new file with mode: 0644]