]> git.kaiwu.me - njs.git/commit
Fixed heap-buffer-overflow in String.prototype.lastIndexOf().
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 28 May 2021 14:00:04 +0000 (14:00 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 28 May 2021 14:00:04 +0000 (14:00 +0000)
commitdc4232e31d228abd8355e350b175cbc5ef87fcae
tree5500f09656ab1a9a6cab84ae4de43993b6acc7b2
parent72ff5c29a86cdb6ba73f1bd66e450a81ffe59198
Fixed heap-buffer-overflow in String.prototype.lastIndexOf().

Previously, the issue occurred when the searchValue is shorter
in character length than "this" string, but longer in byte length.
src/njs_string.c
src/test/njs_unit_test.c