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:
@@ -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
|
||||
|
Reference in New Issue
Block a user