1
0
forked from aniani/vim

updated for version 7.3.1120

Problem:    Crash when regexp logging is enabled.
Solution:   Avoid using NULL pointers. Advance over count argument.
This commit is contained in:
Bram Moolenaar
2013-06-05 16:33:10 +02:00
parent 1cd3f2c450
commit 5b84ddccea
3 changed files with 16 additions and 3 deletions

View File

@@ -6538,10 +6538,16 @@ regdump(pattern, r)
end = next;
if (op == BRACE_LIMITS)
{
/* Two short ints */
/* Two ints */
fprintf(f, " minval %ld, maxval %ld", OPERAND_MIN(s), OPERAND_MAX(s));
s += 8;
}
else if (op == BEHIND || op == NOBEHIND)
{
/* one int */
fprintf(f, " count %ld", OPERAND_MIN(s));
s += 4;
}
s += 3;
if (op == ANYOF || op == ANYOF + ADD_NL
|| op == ANYBUT || op == ANYBUT + ADD_NL