]> git.kaiwu.me - njs.git/commit
Fetch: validate response body size
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 15 Sep 2026 22:45:50 +0000 (15:45 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 16 Sep 2026 21:17:38 +0000 (14:17 -0700)
commit3f5ac135f9aee182fdd62ba3236e878440ce0e38
treefa51251908e8c6eed7c84be7916de06329c098ec
parentc5e6b51c404f022feb54cd34b5f2d5708a4878ac
Fetch: validate response body size

Previously, a negative max_response_body_size could make a close-delimited
response appear as a successful empty body.

The fix is to reject the invalid option while parsing fetch arguments.
nginx/ngx_js_fetch.c
nginx/ngx_qjs_fetch.c
nginx/t/js_fetch.t