From: Dmitry Volyntsev Date: Wed, 10 Jan 2024 01:56:19 +0000 (-0800) Subject: Fixed potential buffer overread in String.prototype.match(). X-Git-Tag: 0.8.3~17 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e3419fafdf339a7f532d0ab054b2a813c7ea939e;p=njs.git Fixed potential buffer overread in String.prototype.match(). --- diff --git a/src/njs_string.c b/src/njs_string.c index 3b3ca12c..3a944ecd 100644 --- a/src/njs_string.c +++ b/src/njs_string.c @@ -2797,7 +2797,7 @@ njs_string_prototype_match(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, match: - return njs_regexp_prototype_exec(vm, arguments, nargs, unused, retval); + return njs_regexp_prototype_exec(vm, arguments, 2, unused, retval); }