зеркало из https://github.com/mozilla/gecko-dev.git
Bug 504482 nsXBLProtoImplMethod::CompileMember shouldn't poke args[] outside paramCount condition
r=bz
This commit is contained in:
Родитель
1eafaa1746
Коммит
196d1b15ff
|
@ -204,15 +204,15 @@ nsXBLProtoImplMethod::CompileMember(nsIScriptContext* aContext, const nsCString&
|
|||
args = new char*[paramCount];
|
||||
if (!args)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
// Add our parameters to our args array.
|
||||
PRInt32 argPos = 0;
|
||||
for (nsXBLParameter* curr = uncompiledMethod->mParameters;
|
||||
curr;
|
||||
curr = curr->mNext) {
|
||||
args[argPos] = curr->mName;
|
||||
argPos++;
|
||||
// Add our parameters to our args array.
|
||||
PRInt32 argPos = 0;
|
||||
for (nsXBLParameter* curr = uncompiledMethod->mParameters;
|
||||
curr;
|
||||
curr = curr->mNext) {
|
||||
args[argPos] = curr->mName;
|
||||
argPos++;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the body
|
||||
|
|
Загрузка…
Ссылка в новой задаче