vim-patch:8.2.4592: search continues after giving E1204

Problem:    Search continues after giving E1204.
Solution:   Return failure after giving E1204. (closes vim/vim#9972)
b10ff5c1b3
This commit is contained in:
zeertzjq 2022-03-19 19:37:08 +08:00
parent b2819eec26
commit 465f8ff8cb

View File

@ -1651,6 +1651,7 @@ static int nfa_regatom(void)
while (ascii_isdigit(c)) {
if (cur) {
semsg(_(e_regexp_number_after_dot_pos_search), no_Magic(c));
return FAIL;
}
if (n > (INT32_MAX - (c - '0')) / 10) {
// overflow.