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/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


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