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 v3] malloc: make malloc fail with requests larger than PTRDIFF_MAX (BZ#23741)


On Thu, 18 Apr 2019, Adhemerval Zanella wrote:

> What about the updates commit message and ChangeLog:
> 
> --
> malloc: make malloc fail with requests larger than PTRDIFF_MAX (BZ#23741)
> 
> As discussed previously on libc-alpha [1], this patch follows up the idea
> and add both the __attribute_alloc_size__ on malloc functions (malloc,
> calloc, realloc, reallocarray, valloc, pvalloc, memaling, and

s/memaling/memalign/

> posix_memalign) and limit maximum requested allocation size to up
> PTRDIFF_MAX (taking into consideration internal padding and alignment).

I think it's confusing to first say here that the attribute is being added 
to posix_memalign, and then say later that it's not.

-- 
Joseph S. Myers
joseph@codesourcery.com


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