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: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 30 Aug 2017 16:22:32 +0200
- Subject: Re: [PATCH] dynarray: Set errno on overflow-induced allocation failure
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9CDA8552FE
- References: <20170817093949.8ACFE400EA94E@oldenburg.str.redhat.com>
On 08/17/2017 11:39 AM, Florian Weimer wrote:
> This allows the caller to return directly on such an error, with an
> appropriate errno value.
>
> 2017-08-17 Florian Weimer <fweimer@redhat.com>
>
> * malloc/dynarray_emplace_enlarge.c
> (__libc_dynarray_emplace_enlarge): Set errno on overflow.
> * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
> * malloc/tst-dynarray.c (test_long_overflow): New function.
> (do_test): Call it.
Ping?
<https://sourceware.org/ml/libc-alpha/2017-08/msg00733.html>
Thanks,
Florian