aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_js_regex.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2021-12-23 14:28:12 +0000
committerDmitry Volyntsev <xeioex@nginx.com>2021-12-23 14:28:12 +0000
commit070b998046de5528bcc6df7f17c443584c2014ac (patch)
tree752dc19471a111c890ef25724763c7e56884132c /nginx/ngx_js_regex.c
parent2da5d8b246b806bee6f74b575217ec3b61a25548 (diff)
downloadnjs-070b998046de5528bcc6df7f17c443584c2014ac.tar.gz
njs-070b998046de5528bcc6df7f17c443584c2014ac.zip
Fixed 1-byte memory over-read introduced in previous commit.
sizeof("\0") returns 2 because of the implicit zero byte added at the end of string literals. Instead njs_length() was intended to be used.
Diffstat (limited to 'nginx/ngx_js_regex.c')
0 files changed, 0 insertions, 0 deletions