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] dynarray: Set errno on overflow-induced allocation failure


On 08/30/2017 07:53 PM, DJ Delorie wrote:
> 
> Looks good to me, although I wonder if ENOMEM is the right error - is it
> really a lack of memory, or is it an invalid parameter (EDOM,
> EOVERFLOW)?

calloc and malloc return ENOMEM in this situation, too.

Thanks,
Florian


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