← Commit list

703a999602

Keng-Yu Lin
Keng-Yu Lin
2026-07-20
SUCCESS Duration: 169s

Subject

tests: fix type promotion on 32-bit arches in http test code

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/http/testenv/mod_curltest/mod_curltest.c+4 -1
@@ -404,7 +404,10 @@ static int curltest_tweak_handler(request_rec *r)
ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r, "error_handler: processing "
"request, %s", r->args? r->args : "(no args)");
r->status = http_status;
- r->clength = with_cl ? (chunks * chunk_size) : -1;
+ if(with_cl)
+ r->clength = (apr_off_t)chunks * chunk_size;
+ else
+ r->clength = -1;
r->chunked = (r->proto_num >= HTTP_VERSION(1, 1)) && !with_cl;
apr_table_setn(r->headers_out, "request-id", request_id);
if(r->clength >= 0) {