mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 470000 - JS_GET_SCRIPT_ATOM needs to use cx->fp safely, r=brendan
This commit is contained in:
parent
5d05cfd543
commit
6f98baeeca
@ -158,7 +158,8 @@ StackDepth(JSScript *script)
|
||||
|
||||
#define JS_GET_SCRIPT_ATOM(script_, index, atom) \
|
||||
JS_BEGIN_MACRO \
|
||||
if (cx->fp && cx->fp->imacpc && cx->fp->script == script_) { \
|
||||
JSStackFrame *fp_ = js_GetTopStackFrame(cx); \
|
||||
if (fp_ && fp_->imacpc && fp_->script == script_) { \
|
||||
JS_ASSERT((size_t)(index) < js_common_atom_count); \
|
||||
(atom) = COMMON_ATOMS_START(&cx->runtime->atomState)[index]; \
|
||||
} else { \
|
||||
|
Loading…
Reference in New Issue
Block a user