[PATCH] dynarray: Set errno on overflow-induced allocation failure

Florian Weimer fweimer@redhat.com
Wed Aug 30 17:56:00 GMT 2017


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



More information about the Libc-alpha mailing list