]> git.kaiwu.me - njs.git/commit
RegExp: fixed a case when lastIndex is greater than string size.
authorValentin Bartenev <vbart@nginx.com>
Mon, 12 Nov 2018 14:22:14 +0000 (17:22 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 12 Nov 2018 14:22:14 +0000 (17:22 +0300)
commite156734575182f2b9080a6647a11c2ac602f7455
tree2027b9f2b12d925b8ac277acac5d740d7ea91d5d
parent8688e911199f8881e1eb86ed83ce91eb066587dc
RegExp: fixed a case when lastIndex is greater than string size.

Previously, it resulted in: "InternalError: pcre_exec() failed: -32" due to
negative string size caused by subtraction of last_index.
njs/njs_regexp.c
njs/test/njs_unit_test.c