Welcome! Log In Create A New Profile

Advanced

[njs] Fixed dead store assignment in r.subrequest().

Anonymous User
October 14, 2024 07:52PM
details: https://github.com/nginx/njs/commit/8759db7458f54d1d2c4d7657a68ca69c51a5c774
branches: master
commit: 8759db7458f54d1d2c4d7657a68ca69c51a5c774
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Fri, 11 Oct 2024 18:41:27 -0700
description:
Fixed dead store assignment in r.subrequest().

Found by Clang static analyzer.

---
nginx/ngx_http_js_module.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index c34fccbd..6f026293 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -3474,7 +3474,6 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
return NJS_ERROR;
}

- promise = 0;
flags = NGX_HTTP_SUBREQUEST_BACKGROUND;

njs_value_undefined_set(retval);
@@ -5859,7 +5858,6 @@ ngx_http_qjs_ext_subrequest(JSContext *cx, JSValueConst this_val,
"exclusive");
}

- promise = 0;
retval = JS_UNDEFINED;
flags = NGX_HTTP_SUBREQUEST_BACKGROUND;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed dead store assignment in r.subrequest().

Anonymous User 151 October 14, 2024 07:52PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 106
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready