File vim-8.0.1568-CVE-2021-4019.patch of Package vim.23083

--- vim-8.0.1568.orig/src/ex_cmds.c	2022-02-03 20:50:13.621648993 +0200
+++ vim-8.0.1568/src/ex_cmds.c	2022-02-17 15:26:40.455282992 +0200
@@ -6547,8 +6549,7 @@
 		    || (vim_strchr((char_u *)"%_z@", arg[1]) != NULL
 							   && arg[2] != NUL)))
 	{
-	    STRCPY(d, "/\\\\");
-	    STRCPY(d + 3, arg + 1);
+	    vim_snprintf((char *)d, IOSIZE, "/\\\\%s", arg + 1);
 	    /* Check for "/\\_$", should be "/\\_\$" */
 	    if (d[3] == '_' && d[4] == '$')
 		STRCPY(d + 4, "\\$");
openSUSE Build Service is sponsored by