diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2021-12-23 14:28:12 +0000 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2021-12-23 14:28:12 +0000 |
commit | 070b998046de5528bcc6df7f17c443584c2014ac (patch) | |
tree | 752dc19471a111c890ef25724763c7e56884132c /nginx/ngx_js_regex.c | |
parent | 2da5d8b246b806bee6f74b575217ec3b61a25548 (diff) | |
download | njs-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