Blame SOURCES/vim-cve3778-fix.patch

85c1c7
diff -up vim80/src/regexp_nfa.c.cve3796-fix vim80/src/regexp_nfa.c
85c1c7
--- vim80/src/regexp_nfa.c.cve3796-fix	2021-09-20 08:27:13.752604505 +0200
85c1c7
+++ vim80/src/regexp_nfa.c	2021-09-20 08:29:10.206546910 +0200
85c1c7
@@ -5493,7 +5493,8 @@ find_match_text(colnr_T startcol, int re
85c1c7
 		match = FALSE;
85c1c7
 		break;
85c1c7
 	    }
85c1c7
-	    len2 += MB_CHAR2LEN(c2);
85c1c7
+	    len2 += enc_utf8 ? utf_ptr2len(regline + col + len2)
85c1c7
+							     : MB_CHAR2LEN(c2);
85c1c7
 	}
85c1c7
 	if (match
85c1c7
 #ifdef FEAT_MBYTE