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 6e05d7047a
commit 6dceb32817
3 changed files with 19 additions and 1 deletions

View File

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