# HG changeset patch # User Roman Arutyunyan # Date 1585313442 -10800 # Node ID 4feae8bc0ca967edccb61e7d05947860204edd5d # Parent 9895d0fa87563f8780508c1b91e554d08a9640a0 Fixed buffer overflow. diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -263,7 +263,7 @@ ngx_http_v3_create_header(ngx_http_reque return NULL; } - len = 0; + len = 2; if (r->headers_out.status == NGX_HTTP_OK) { len += ngx_http_v3_encode_prefix_int(NULL, 25, 6);