recallocarray
is a libc function that ensures data is
discarded before allocating new memory and checks for integer overflow from
multiplication. This function appeared in OpenBSD 6.1.
Details:
- malloc(3) - OpenBSD manual pages
- reallocarray() in OpenBSD: Integer Overflow Detection for Free - Lawrence Teo
- OpenBSD 6.1