implement reallocarray
authorAriadne Conill <ariadne@dereferenced.org>
Sat, 1 Aug 2020 14:26:35 +0000 (08:26 -0600)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Nov 2020 21:49:58 +0000 (16:49 -0500)
commit821083ac7b54eaa040d5a8ddc67c6206a175e0ca
tree530083ea1ed16cb8cffbe23ea2c5e9b121b23bad
parent29ff7599a448232f2527841c2362643d246cee36
implement reallocarray

reallocarray is an extension introduced by OpenBSD, which introduces
calloc overflow checking to realloc.

glibc 2.28 introduced support for this function behind _GNU_SOURCE,
while glibc 2.29 allows its usage in _DEFAULT_SOURCE.
include/stdlib.h
src/malloc/reallocarray.c [new file with mode: 0644]