]> git.kaiwu.me - nginx.git/commit
Rejected zero size in buffer-size directives
authorSourav Bhowmik <s.bhowmik@f5.com>
Thu, 13 Aug 2026 12:40:29 +0000 (05:40 -0700)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 25 Sep 2026 18:27:38 +0000 (22:27 +0400)
commitd115763f8e4ac14969ddc18d83ba215502c4f628
tree80e09c014e4fa601a44d2ebfb2a4b5dc01e0cb35
parentd10dd3123a0f1f3c6b9fc836162215a6df7af98b
Rejected zero size in buffer-size directives

When set to zero, this resulted in a buffer with no room to read into.
As there is no meaningful interpretation of a zero-sized buffer, such
configuration is explicitly rejected.

Reported by kh-lee
16 files changed:
src/core/ngx_conf_file.c
src/core/ngx_conf_file.h
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_grpc_module.c
src/http/modules/ngx_http_memcached_module.c
src/http/modules/ngx_http_mp4_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_ssl_module.c
src/http/modules/ngx_http_tunnel_module.c
src/http/modules/ngx_http_uwsgi_module.c
src/http/ngx_http_core_module.c
src/http/v3/ngx_http_v3_module.c
src/mail/ngx_mail_proxy_module.c
src/stream/ngx_stream_core_module.c
src/stream/ngx_stream_proxy_module.c