From 3bc6ae55009afbfbcf39b27afa395e27d31de210 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 19 Mar 2026 00:53:00 +0100 Subject: [PATCH] mod_curltest: fix allocation size It wasn't causing an issue with current usage. Found by Codex Security Follow-up to 35cfb081d24ae4c1608601f71890e43907643ae5 #16541 Closes #20994 --- tests/http/testenv/mod_curltest/mod_curltest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/http/testenv/mod_curltest/mod_curltest.c b/tests/http/testenv/mod_curltest/mod_curltest.c index c27596a37e..bc1c75e5d9 100644 --- a/tests/http/testenv/mod_curltest/mod_curltest.c +++ b/tests/http/testenv/mod_curltest/mod_curltest.c @@ -420,7 +420,7 @@ static int curltest_tweak_handler(request_rec *r) if(x_hd_len > 0) { int i, hd_len = (16 * 1024); int n = (x_hd_len / hd_len); - char *hd_val = apr_palloc(r->pool, x_hd_len); + char *hd_val = apr_palloc(r->pool, hd_len); memset(hd_val, 'X', hd_len); hd_val[hd_len - 1] = 0; for(i = 0; i < n; ++i) {