]> git.kaiwu.me - nginx.git/commitdiff
Access log: fix "request_length" format length
authorNitin Swami <n.swami@f5.com>
Fri, 5 Jun 2026 07:28:53 +0000 (12:58 +0530)
committerNITIN SWAMI <n.swami@f5.com>
Thu, 11 Jun 2026 03:42:57 +0000 (09:12 +0530)
The variable handler uses "%O" format specifier.

Reported by Mufeed VH of Winfunc Research.

src/http/modules/ngx_http_log_module.c

index f7c4bd2f5985544ef67b4d5553851be63705bdc6..57fb1d3779108676d138bdef1a5ae0322ed39f22 100644 (file)
@@ -243,7 +243,7 @@ static ngx_http_log_var_t  ngx_http_log_vars[] = {
     { ngx_string("bytes_sent"), NGX_OFF_T_LEN, ngx_http_log_bytes_sent },
     { ngx_string("body_bytes_sent"), NGX_OFF_T_LEN,
                           ngx_http_log_body_bytes_sent },
-    { ngx_string("request_length"), NGX_SIZE_T_LEN,
+    { ngx_string("request_length"), NGX_OFF_T_LEN,
                           ngx_http_log_request_length },
 
     { ngx_null_string, 0, NULL }