[PATCH] dynarray: Set errno on overflow-induced allocation failure
Florian Weimer
fweimer@redhat.com
Wed Aug 30 14:22:00 GMT 2017
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
More information about the Libc-alpha
mailing list