Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PdfObject.cpp:678:Segmentation fault #96

Closed
Liujiahao0 opened this issue Aug 31, 2023 · 0 comments
Closed

PdfObject.cpp:678:Segmentation fault #96

Liujiahao0 opened this issue Aug 31, 2023 · 0 comments
Labels
bug Something isn't working vulnerability Security related issue

Comments

@Liujiahao0
Copy link

I'm submitting a Bug report

  • [Bug report] What is the current behavior?
    System prompt Segmentation fault

  • [Bug report] What is the expected behavior?
    Extracting Text Content from PDF Files

  • [Bug report] Please provide the steps to reproduce and if possible a minimal reproduction code of the problem
    podofotxextract 1.pdf
    podofo/src/podofo/main/PdfObject.cpp:
    PdfDictionary& PdfObject::GetDictionary()
    {
    DelayedLoad();
    return m_Variant.GetDictionary();
    }

  • Please tell us about your environment:

    • Version/git revision: [0.11.0]
    • Operating System: Linux (64 bits)
    • Package manager used: [apt]
  • [Bug report/Feature request] Other information

    The stack information is as follows:
    Program received signal SIGSEGV, Segmentation fault.
    PoDoFo::PdfObject::GetDictionary (this=0x0) at /podofo/src/podofo/main/PdfObject.cpp:678
    678 DelayedLoad();
    (gdb) bt
    #0 PoDoFo::PdfObject::GetDictionary (this=0x0) at /Oscar01/liujiahao/podofo/src/podofo/main/PdfObject.cpp:678
    PoDoFo creates unreadable PDFs when OpenSSL RC4 is not available and PODOFO_HAVE_OPENSSL_NO_RC4 is set #1 0x00007ffff7d777f2 in PoDoFo::PdfFont::TryCreateFromObject (obj=..., font=std::unique_ptrPoDoFo::PdfFont = {...})
    at /Oscar01/liujiahao/podofo/src/podofo/main/PdfFontFactory.cpp:106
    Remove annotations from PDF files #2 0x00007ffff7d7c130 in PoDoFo::PdfFontManager::GetLoadedFont (this=0x7fffffffe7c0, resources=..., name=...)
    at /Oscar01/liujiahao/podofo/src/podofo/main/PdfFontManager.cpp:114
    Add support for Unicode combining marks #3 0x00007ffff7df6231 in ExtractionContext::Tf_Operator (this=this@entry=0x7fffffffe018, fontname=..., fontsize=, fontsize@entry=360)
    at /Oscar01/liujiahao/podofo/src/podofo/main/PdfPage_TextExtraction.cpp:882
    Second digital signature invalidates the first one #4 0x00007ffff7df4883 in PoDoFo::PdfPage::ExtractTextTo (this=, entries=..., pattern=..., params=...)
    at /Oscar01/liujiahao/podofo/src/podofo/main/PdfPage_TextExtraction.cpp:282
    Fix declaration of operator<< for PoDoFo::PdfString #5 0x00000000004036b1 in Main (args=...) at /Oscar01/liujiahao/podofo/tools/podofotxtextract/podofotxtextract.cpp:40
    ColorTest (and maybe others) are broken on aarch64 (aka arm64) #6 0x00000000004040d8 in main (argc=, argv=) at /Oscar01/liujiahao/podofo/tools/private/MainEntryPoint.cpp:35

1.pdf

@ceztko ceztko closed this as completed in 5f705c6 Oct 29, 2023
@ceztko ceztko added bug Something isn't working vulnerability Security related issue labels Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vulnerability Security related issue
Projects
None yet
Development

No branches or pull requests

2 participants