Detect and report malformed function calls that caused a forever loop.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2841 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
b59a769cc3
commit
b37455703c
|
@ -292,6 +292,10 @@ static void replaceFuncs(String &str)
|
|||
evalFunc(v);
|
||||
str = str.substr(0,p1) + v + str.substr(p2+1);
|
||||
}
|
||||
else {
|
||||
Debug("RegexRoute",DebugWarn,"Unmatched function end: '%s'",str.c_str()+p1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue