This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] dynarray: Set errno on overflow-induced allocation failure
- From: DJ Delorie <dj at redhat dot com>
- To: fweimer at redhat dot com (Florian Weimer)
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 30 Aug 2017 13:53:13 -0400
- Subject: Re: [PATCH] dynarray: Set errno on overflow-induced allocation failure
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dj at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E9DF4C058EC2
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)?