Add compat for reallocarray()
This function fails safely in the case where the multiplication would overflow.
This commit is contained in:
@@ -67,4 +67,8 @@ long nrand48(unsigned short xsubi[3]);
|
||||
long jrand48(unsigned short xsubi[3]);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_REALLOCARRAY
|
||||
void *reallocarray(void *ptr, size_t nmemb, size_t size);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user