forked from aniani/vim
patch 7.4.937
Problem: Segfault reading unitialized memory. Solution: Do not read match \z0, it does not exist. (Marius Gedminas, closes #497)
This commit is contained in:
@@ -6947,7 +6947,8 @@ nfa_regtry(prog, col, tm)
|
|||||||
{
|
{
|
||||||
cleanup_zsubexpr();
|
cleanup_zsubexpr();
|
||||||
re_extmatch_out = make_extmatch();
|
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)
|
if (REG_MULTI)
|
||||||
{
|
{
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
937,
|
||||||
/**/
|
/**/
|
||||||
936,
|
936,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user