Skip to content

Crash when using wholeTextForPage #84

@muchabartek

Description

@muchabartek

Hi, first of all thanks for this great library, we are using it for quite a long time and it is very useful to us.

Unfortunately we have a problem wholeTextForPage method. When we try to search for text application crashes in -[MFToUnicodeCMapScannerMultibyte scan] due to EXC_BAD_ACCESS issue. This crash occurs on iOS 10.2 (any other iOS versions parsing is successful). Document is in Korean language.

#1	0x0000000100109848 in -[MFToUnicodeCMapScannerMultibyte scan]
#2	0x00000001001039d9 in parseToUnicodeCMapStreamMultibyte
#3	0x000000010010484d in sniffType0Font
#4	0x00000001001058ef in fontDictionarySnifferFunction
#5	0x00000001014b4233 in CGPDFDictionaryApplyFunction ()
#6	0x0000000100105a8e in -[MFStreamScanner scan]
#7	0x0000000100110d14 in -[MFDocumentManager wholeTextForPage:]

Is there any way to fix it using current version of library, or to provide any hotfix so that we can successfully use it under latest iOS?

If needed I can provide a test pdf which is failing, but please provide an email address or any other option share this file securely, as it's not something I can share to anyone.
Any help appreaciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions