# HG changeset patch # User Roman Arutyunyan # Date 1585313442 -10800 # Node ID 4feae8bc0ca967edccb61e7d05947860204edd5d # Parent 9895d0fa87563f8780508c1b91e554d08a9640a0 Fixed buffer overflow. diff -r 9895d0fa8756 -r 4feae8bc0ca9 src/http/v3/ngx_http_v3_request.c --- a/src/http/v3/ngx_http_v3_request.c Fri Mar 27 12:52:08 2020 +0300 +++ b/src/http/v3/ngx_http_v3_request.c Fri Mar 27 15:50:42 2020 +0300 @@ -263,7 +263,7 @@ return NULL; } - len = 0; + len = 2; if (r->headers_out.status == NGX_HTTP_OK) { len += ngx_http_v3_encode_prefix_int(NULL, 25, 6);