Add compat for reallocarray()

This function fails safely in the case where the multiplication would
overflow.
This commit is contained in:
Romain Vimont
2023-02-28 21:43:19 +01:00
parent f6ae6865ed
commit f3998c280b
3 changed files with 19 additions and 1 deletions

View File

@@ -180,6 +180,7 @@ check_functions = [
'vasprintf',
'nrand48',
'jrand48',
'reallocarray',
]
foreach f : check_functions