diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-12-08 17:35:13 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-12-08 17:35:13 +0100 |
commit | 1b1ad4ed2919fbc68d8905cfec38a968821ce372 (patch) | |
tree | 5532a7e21342f88f4df7cd42139e012b6bd1dbe6 /tests/reallocarray.c | |
parent | 63b5c0db2dc641876e58d232220c7efc2b2c2423 (diff) | |
parent | fa82e850f8d894ae4b9cd75bd12ffeeb65974d50 (diff) |
Merge branch 'release/debian/1.1-1_experimental1'debian/1.1-1_experimental1
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 bc4cba4..70c1b47 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; |