patch 7.4.937
Problem:    Segfault reading unitialized memory.
Solution:   Do not read match \z0, it does not exist. (Marius Gedminas, closes
            #497)
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index a21c3c0..32108be 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -6947,7 +6947,8 @@
     {
 	cleanup_zsubexpr();
 	re_extmatch_out = make_extmatch();
-	for (i = 0; i < subs.synt.in_use; i++)
+	/* Loop over \z1, \z2, etc.  There is no \z0. */
+	for (i = 1; i < subs.synt.in_use; i++)
 	{
 	    if (REG_MULTI)
 	    {