mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 477053 - Protect against evil E4X jsvals in args_resolve. r=brendan
This commit is contained in:
parent
6043733d94
commit
0fa948a984
@ -461,7 +461,7 @@ args_resolve(JSContext *cx, JSObject *obj, jsval id, uintN flags,
|
||||
}
|
||||
*objp = obj;
|
||||
}
|
||||
} else {
|
||||
} else if (JSVAL_IS_STRING(id)) {
|
||||
str = JSVAL_TO_STRING(id);
|
||||
atom = cx->runtime->atomState.lengthAtom;
|
||||
if (str == ATOM_TO_STRING(atom)) {
|
||||
|
Loading…
Reference in New Issue
Block a user