]> git.kaiwu.me - njs.git/commit
Fixed RegExp.prototype[@@replace]().
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 28 May 2024 22:49:39 +0000 (15:49 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 29 May 2024 00:35:57 +0000 (17:35 -0700)
commit532d5838a65573cd1890caac883775902097241e
treeae4d830cc1f7cf500d41b2a18b193d1bfc78d10c
parent8e7ce3bb000485c8454190d328672d092bd07de1
Fixed RegExp.prototype[@@replace]().

With replacement containing "$'", "$\`" and Unicode characters.

The similar issue was fixed for String.prototype.replace() in
10127d70e941 (0.7.11).

Found by OSS-Fuzz.
src/njs_regexp.c
src/test/njs_unit_test.c