[Poppler-bugs] [Bug 103023] New: Fix handling of UTF16-LE annotations

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 28 13:46:15 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103023

            Bug ID: 103023
           Summary: Fix handling of UTF16-LE annotations
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: teuf at gnome.org

Created attachment 134538
  --> https://bugs.freedesktop.org/attachment.cgi?id=134538&action=edit
Test case

The 'unicode' annotation in the attached test case does not render properly. I
added it through the default mail application on my iOS11 iphone.
I trade that down to _poppler_goo_string_to_utf8() which assumes UTF16 strings
will always be big endian, while in my test file, a little endian UTF16 string
is used.
I've fixed this by adding 2 new methods to GooString (hasBigEndianBOM()
hasLittleEndianBOM()), but all users of GooString::hasUnicodeMarker() should
probably be audited and handle both types of UTF16 strings unless the pdf specs
mandates big endian strings. Since I'm not familiar at all with the PDF format,
I haven't tried to address this yet.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170928/7cfcc7d7/attachment.html>


More information about the Poppler-bugs mailing list