mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 418616 - fix use of uninitialized data in js_CheckAccess, patch by Blake Kaplan <mrbkap@gmail.com>, r+=shaver, a+=brendan
This commit is contained in:
parent
1fdaf7b67e
commit
eff79b10d8
@ -4311,8 +4311,11 @@ js_CheckAccess(JSContext *cx, JSObject *obj, jsid id, JSAccessMode mode,
|
||||
OBJ_DROP_PROPERTY(cx, pobj, prop);
|
||||
|
||||
/* Avoid diverging for non-natives that reuse js_CheckAccess. */
|
||||
if (pobj->map->ops->checkAccess == js_CheckAccess)
|
||||
if (pobj->map->ops->checkAccess == js_CheckAccess) {
|
||||
if (!writing)
|
||||
*vp = JSVAL_VOID;
|
||||
break;
|
||||
}
|
||||
return OBJ_CHECK_ACCESS(cx, pobj, id, mode, vp, attrsp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user