]> git.kaiwu.me - njs.git/commit
Fixed NULL pointer dereference when processing If-* headers.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 8 Jul 2025 05:40:45 +0000 (22:40 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 8 Jul 2025 22:25:58 +0000 (15:25 -0700)
commita4addc9b3145313f74de31b592e3b36714987ea0
tree46bdb66220090b6f0212386514da8ee33ad0ec02
parentecc237b079a699537351ddc3dd1ade2f96918451
Fixed NULL pointer dereference when processing If-* headers.

Previously, when processing requests with If-Match and
If-Unmodified-Since headers worker process crashed.

For example with the following code:
try { r.return(200) }
catch (e) { r.internalRedirect() }

The fix is to disable not_modified filter as it was done in
nginx perl module nginx/nginx@d9887ee2.
nginx/ngx_http_js_module.c
nginx/t/js_internal_redirect.t