mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 504482 nsXBLProtoImplMethod::CompileMember shouldn't poke args[] outside paramCount condition
r=bz
This commit is contained in:
parent
bc35a8740a
commit
5d929545cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user