From: Nitin Swami Date: Fri, 5 Jun 2026 07:28:53 +0000 (+0530) Subject: Access log: fix "request_length" format length X-Git-Tag: release-1.31.2~8 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/NGINX-js-1660x332.png%20%22NGINX%20JavaScript%20Banner%22?a=commitdiff_plain;h=e09c0d32d51c8cf85caecaf8c07db5e7c8dcf742;p=nginx.git Access log: fix "request_length" format length The variable handler uses "%O" format specifier. Reported by Mufeed VH of Winfunc Research. --- diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index f7c4bd2f5..57fb1d377 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -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 }