patch 7.4.799
Problem:    Accessing memory before an allocated block.
Solution:   Check for not going before the start of a pattern. (Dominique
            Pelle)
diff --git a/src/fileio.c b/src/fileio.c
index 17b73bf..b1bcfb5 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -8514,7 +8514,7 @@
 	 */
 	brace_level = 0;
 	for (endpat = pat; *endpat && (*endpat != ',' || brace_level
-					     || endpat[-1] == '\\'); ++endpat)
+			   || (endpat > pat && endpat[-1] == '\\')); ++endpat)
 	{
 	    if (*endpat == '{')
 		brace_level++;