From 26112352a774737e1ce5580c93654a26c1e82b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 24 Oct 2022 22:25:29 +0200 Subject: New upstream version 1.1 --- tests/reallocarray.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/reallocarray.c') 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 +#include #include #include -#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; -- cgit v1.2.3