Fix for bug 203978 (Invalid read of size 4 const nsString FunctionCall::INVALID_PARAM_VALUE(NS_LITERAL_STRING("invalid parameter value for function: "));). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@142941 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -57,7 +57,7 @@ ExprResult* StringFunctionCall::evaluate(txIEvalContext* aContext)
|
||||
switch (mType) {
|
||||
case CONCAT:
|
||||
{
|
||||
if (!requireParams(2, aContext))
|
||||
if (!requireParams(2, -1, aContext))
|
||||
return new StringResult(NS_LITERAL_STRING("error"));
|
||||
|
||||
nsAutoString resultStr;
|
||||
|
||||
Reference in New Issue
Block a user