This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove incorrect alloc_size attribute from pvalloc [BZ #25401]


* Adhemerval Zanella:

> On 17/01/2020 07:28, Florian Weimer wrote:
>> 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)").
>
> LGTM, thanks.
>
> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>

Thanks.

Siddhesh, should we put this into the release?

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]