]> git.kaiwu.me - njs.git/commit
Module: fixed heap-use-after-free while module loading.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 2 Oct 2025 03:07:14 +0000 (20:07 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 2 Oct 2025 22:18:43 +0000 (15:18 -0700)
commit243347edc86d9dc1ee0e35f86acc839d50db1d9d
tree8c1e6c291cde0c6192a5ce8cd92392c55ed019df
parentd4b66d5944e950a94a8790aad834ea01d421458f
Module: fixed heap-use-after-free while module loading.

Making a copy of file argument because the engine may outlive
current ngx_cycle.

The bug became visible since 283282f (0.8.8).
nginx/ngx_js.c
nginx/t/js_import2.t