]> git.kaiwu.me - nginx.git/commit
Uwsgi: support for multibyte parameter name lengths.
authorVadim Zhestikov <v.zhestikov@f5.com>
Wed, 19 Aug 2026 19:41:08 +0000 (12:41 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Thu, 20 Aug 2026 02:24:25 +0000 (19:24 -0700)
commitbc7c3424c30d3b140650cdc5ba7fe978f55f4f4e
treecbeeaa99018ab7d05f9c248b30b70cd809ff2871
parent6ae731d074b015be859c3d4ddcaddbaf0dfad8ed
Uwsgi: support for multibyte parameter name lengths.

The name length of a configured parameter was truncated to one byte
before the per-parameter length field was written, so that a
uwsgi_param name of 256 bytes or longer was encoded with a wrong
length while the name itself was copied in full.  The resulting request
was malformed, and upstream servers responded by closing the connection.

While long names are barely used in practice, it is easy to support
them.  The length is now properly encoded up to the allowed length.
src/http/modules/ngx_http_uwsgi_module.c