This commit adds support for reallocarray function. The functionality is the same as for standard realloc, but the function also checks for multiplication overflow and fails safely in case it occurs. Signed-off-by: Michal Lenc <michallenc@seznam.cz>