# HG changeset patch # User Sergey Kandaurov # Date 1716902445 -14400 # Node ID 4c7a9355bcae1d82ec4ccd0f0841032ade83d24a # Parent 5c6649b4308f6c13d70bcb4357199e4a8e1226f3 HTTP/3: fixed handling of zero-length literal field line. Previously, st->value was passed with NULL data pointer to header handlers. diff -r 5c6649b4308f -r 4c7a9355bcae src/http/v3/ngx_http_v3_parse.c --- a/src/http/v3/ngx_http_v3_parse.c Tue May 28 17:19:21 2024 +0400 +++ b/src/http/v3/ngx_http_v3_parse.c Tue May 28 17:20:45 2024 +0400 @@ -810,6 +810,7 @@ st->literal.length = st->pint.value; if (st->literal.length == 0) { + st->value.data = (u_char *) ""; goto done; } @@ -932,6 +933,7 @@ st->literal.length = st->pint.value; if (st->literal.length == 0) { + st->value.data = (u_char *) ""; goto done; } @@ -1072,6 +1074,7 @@ st->literal.length = st->pint.value; if (st->literal.length == 0) { + st->value.data = (u_char *) ""; goto done; }