]> git.kaiwu.me - nginx.git/commit
HTTP/3: null-terminate empty header value.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 17 Nov 2020 20:54:10 +0000 (20:54 +0000)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 17 Nov 2020 20:54:10 +0000 (20:54 +0000)
commit9129fb3db9e2f9899161e9573e7a19c774a0df6a
tree07a6ba76d65b235cc56691e49ebcd3a95d62c1ac
parent49f0b0d99d70fa4e895b939a320c29df28a34fff
HTTP/3: null-terminate empty header value.

Header value returned from the HTTP parser is expected to be null-terminated or
have a spare byte after the value bytes.  When an empty header value was passed
by client in a literal header representation, neither was true.  This could
result in segfault.  The fix is to assign a literal empty null-terminated
string in this case.

Thanks to Andrey Kolyshkin.
src/http/v3/ngx_http_v3_parse.c