summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-30 10:28:48 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-30 10:28:48 -0700
commit6fc7919796b68d5264030250875dce2358605af1 (patch)
treeb6763b4f58ffd753626d311855b7013b610601af /xfa
parentee02ea37e8f85920885600d56df706d690e648ff (diff)
downloadpdfium-6fc7919796b68d5264030250875dce2358605af1.tar.xz
XFA: Segv in CFXJSE_RuntimeData::Get()
Crash occurs when JS is first entered from the FXJSE_ side, instead of the FXJS_ side. Added initializaton call to FXJSE_. BUG=pdfium:259 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1406253007 .
Diffstat (limited to 'xfa')
-rw-r--r--xfa/src/fxjse/src/runtime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xfa/src/fxjse/src/runtime.cpp b/xfa/src/fxjse/src/runtime.cpp
index 4a77b4f165..01836113d0 100644
--- a/xfa/src/fxjse/src/runtime.cpp
+++ b/xfa/src/fxjse/src/runtime.cpp
@@ -83,6 +83,7 @@ CFXJSE_RuntimeData* CFXJSE_RuntimeData::Create(v8::Isolate* pIsolate) {
return pRuntimeData;
}
CFXJSE_RuntimeData* CFXJSE_RuntimeData::Get(v8::Isolate* pIsolate) {
+ FXJS_PerIsolateData::SetUp(pIsolate);
FXJS_PerIsolateData* pData = FXJS_PerIsolateData::Get(pIsolate);
if (!pData->m_pFXJSERuntimeData)
pData->m_pFXJSERuntimeData = CFXJSE_RuntimeData::Create(pIsolate);