linmaogithub / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

pdfium_test run XFA file crash in FPDF_LoadXFA #216

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Set Command Argument: --png xfa.pdf
2.Run pdfium_test
3.Crash in "FPDF_LoadXFA"

What is the expected output? What do you see instead?
FPDF_LoadXFA should run success, but crash.

What version of the product are you using? On what operating system?
Windows 7 64bit, VS2013, PDFIUM is 32 bit,

PDFIUM version:
E:\pdfium>git log -1
commit 468e5896007c7fe7bb283c0161d807a76f403308
Author: Tom Sepez <tsepez@chromium.org>
Date:   Tue Oct 13 15:49:36 2015 -0700

    Changes to XFA to more closely match master.

    These files should change in XFA in order to reduce the number of
    "noise diffs" between master and XFA as seen in
        https://codereview.chromium.org/1399273003/

    These include: blank lines and missed merges:
      3c012fe else-after-returns (partial)
      fb07e28 Tidy up CPDFDOC_Environment (partial, consts missing).
      624b166 Allow FPDFBookmark_GetFirstChild to return the top level bookmark

    R=thestig@chromium.org

    Review URL: https://codereview.chromium.org/1403063003 .

Please provide any additional information below.

Call Stack:
>   pdfium_test.exe!CFXJSE_RuntimeData::Get(v8::Isolate * pIsolate) Line 87 C++
    pdfium_test.exe!CFXJSE_ScopeUtil_IsolateHandleRootContext::CFXJSE_ScopeUtil_IsolateHandleRootContext(v8::Isolate * pIsolate) Line 41    C++
    pdfium_test.exe!CFXJSE_Class::Create(CFXJSE_Context * lpContext, const _FXJSE_CLASS * lpClassDefinition, int bIsJSGlobal) Line 255  C++
    pdfium_test.exe!CFXJSE_Context::Create(v8::Isolate * pIsolate, const _FXJSE_CLASS * lpGlobalClass, void * lpGlobalObject) Line 153  C++
    pdfium_test.exe!FXJSE_Context_Create(FXJSE_HRUNTIME_ * hRuntime, const _FXJSE_CLASS * lpGlobalClass, void * lpGlobalObject) Line 18 C++
    pdfium_test.exe!CXFA_ScriptContext::DefineJsContext() Line 436  C++
    pdfium_test.exe!CXFA_ScriptContext::Initialize(FXJSE_HRUNTIME_ * hRuntime) Line 81  C++
    pdfium_test.exe!CXFA_Document::InitScriptContext(FXJSE_HRUNTIME_ * hRuntime) Line 257   C++
    pdfium_test.exe!CXFA_FFDocHandler::SetJSERuntime(IXFA_Doc * hDoc, FXJSE_HRUNTIME_ * hRuntime) Line 65   C++
    pdfium_test.exe!CPDFXFA_Document::LoadXFADoc() Line 112 C++
    pdfium_test.exe!FPDF_LoadXFA(void * document) Line 306  C++
    pdfium_test.exe!RenderPdf(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & name, const char * pBuf, unsigned int len, const Options & options) Line 496 C++
    pdfium_test.exe!main(int argc, const char * * argv) Line 659    C++

Original issue reported on code.google.com by sean.yx...@gmail.com on 15 Oct 2015 at 9:08

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by och...@chromium.org on 16 Oct 2015 at 12:58