From 44f32ff7050a4f8ffbd7f00c0da632fa2bbdd662 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 2 Aug 2025 12:42:40 +0200 Subject: [PATCH] malloc is enough, due to memset --- tests/unit/unit2604.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/unit2604.c b/tests/unit/unit2604.c index 3002d84ec0..baa8ecb445 100644 --- a/tests/unit/unit2604.c +++ b/tests/unit/unit2604.c @@ -81,7 +81,7 @@ static CURLcode test_unit2604(const char *arg) const char *cp; CURLcode result; if(i == 0) { - cp0 = calloc(1, too_long + 1); + cp0 = malloc(too_long + 1); fail_unless(cp0, "could not alloc too long value"); memset(cp0, 'a', too_long); cp = cp0;