aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_js.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2022-08-29 21:09:12 -0700
committerDmitry Volyntsev <xeioex@nginx.com>2022-08-29 21:09:12 -0700
commite53c55e1e20eb8545d0a165c520bf11bd5b14624 (patch)
tree2b3e7312760a7632e4d303d7765d73217d525f20 /nginx/ngx_js.c
parent1ff71a1783403b1abdccc5e56ec6c7ff1cb1fa75 (diff)
downloadnjs-e53c55e1e20eb8545d0a165c520bf11bd5b14624.tar.gz
njs-e53c55e1e20eb8545d0a165c520bf11bd5b14624.zip
Fixed njs_value_to_string() with non-writable dst argument.
njs_arg(args, nargs, N) returns a pointer to Nth argument OR a pointer to undefined constant value njs_value_undefined if N >= nargs. njs_value_to_string() writes to a dst argument its result. This means that it is incorrect to use value of njs_arg() directly as a second argument to njs_value_to_string(). This closes #570 issue on Github.
Diffstat (limited to 'nginx/ngx_js.c')
0 files changed, 0 insertions, 0 deletions