Welcome! Log In Create A New Profile

Advanced

[njs] Fixed copying of a garbage value.

Dmitry Volyntsev
March 23, 2018 06:56AM
details: http://hg.nginx.org/njs/rev/77e675beae48
branches:
changeset: 468:77e675beae48
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Fri Mar 23 13:53:27 2018 +0300
description:
Fixed copying of a garbage value.

Found by Clang Static Analyzer.

Additionally, unnecessary body_arg.length zeroing is removed.

diffstat:

nginx/ngx_http_js_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f58d5003ba33 -r 77e675beae48 nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Thu Mar 22 15:05:08 2018 +0300
+++ b/nginx/ngx_http_js_module.c Fri Mar 23 13:53:27 2018 +0300
@@ -1503,7 +1503,7 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm,

method = 0;
args_arg.length = 0;
- body_arg.length = 0;
+ args_arg.start = NULL;
has_body = 0;

if (nargs > 2 && !njs_value_is_function(njs_argument(args, 2))) {
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed copying of a garbage value.

Dmitry Volyntsev 356 March 23, 2018 06:56AM



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

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready