]> git.kaiwu.me - nginx.git/commit
HTTP/3: avoid undefined behaviour with empty encoder field values
authordgprivate <dean.gostisa@black.si>
Sat, 29 Aug 2026 05:53:38 +0000 (05:53 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 15 Oct 2026 15:00:47 +0000 (19:00 +0400)
commit35a437d3d9e930401227cd5b214b7cffb02687d3
treec91e86de5ac18bb919f61a76f8f81fd19741410f
parentcae999986011c043b680b46314fc1f31b91e9842
HTTP/3: avoid undefined behaviour with empty encoder field values

A zero length field value in encoder stream instructions left the value
data pointer NULL, passed then to ngx_memcpy() in ngx_http_v3_insert().
For the reasons outlined in b0a4d0fb8, it is now set to an empty string.
src/http/v3/ngx_http_v3_parse.c