From: Viktor Szakats Date: Wed, 18 Mar 2026 23:53:00 +0000 (+0100) Subject: mod_curltest: fix allocation size X-Git-Tag: rc-8_20_0-1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bc6ae55009afbfbcf39b27afa395e27d31de210;p=thirdparty%2Fcurl.git 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 --- 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) {