diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-10-24 22:26:08 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-10-24 22:26:08 +0200 |
commit | e97e0882ffc87a91e7818137196f1b74134566df (patch) | |
tree | 285662381eaa0514f988142bff0c8a9685c84dc0 /tests/reallocarray.c | |
parent | cc0876a2fa9e703b1064992ab535f3eed57e9c71 (diff) | |
parent | cb4186bef1b44691db4221406d001a8d40c65b4b (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'tests/reallocarray.c')
-rw-r--r-- | tests/reallocarray.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/reallocarray.c b/tests/reallocarray.c index bc4cba4b..70c1b478 100644 --- a/tests/reallocarray.c +++ b/tests/reallocarray.c @@ -19,16 +19,15 @@ #include <config.h> +#include <stdckdint.h> #include <stdlib.h> #include <errno.h> -#include "intprops.h" - void * reallocarray (void *ptr, size_t nmemb, size_t size) { size_t nbytes; - if (INT_MULTIPLY_WRAPV (nmemb, size, &nbytes)) + if (ckd_mul (&nbytes, nmemb, size)) { errno = ENOMEM; return NULL; |