[Bug malloc/25401] pvalloc must not have __attribute_alloc_size__
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Fri Jan 17 14:06:00 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=25401
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=768c83b7f60d82db6677e19dc51be9f341e0f3fc
commit 768c83b7f60d82db6677e19dc51be9f341e0f3fc
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Jan 17 15:05:34 2020 +0100
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>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list