[Poppler-bugs] [Bug 60377] New: NamedDests in glib frontend are broken

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 6 08:39:54 PST 2013


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

          Priority: medium
            Bug ID: 60377
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: NamedDests in glib frontend are broken
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: jose.aliste at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: glib frontend
           Product: poppler

Hi, currently, NamedDests in glib frontend are brokend. This is because in the
pdf reference, Names trees can hold very wild strings, including byte strings,
where the '\0' ending character assumption does not hold. Thus, a gchar * is
not a good way of describing named destinations on the glib world. On test
file, 
all the goostrings are alright, but when transforming these to gchar *, some of
the byte strings have a '\0' before the end of the string. 

This makes these PopplerDest objects unusable. We should get some more fancy
API for that (Like using GBytes? and adding some methods to check if it is a
proper string or so) or not to convert the name to gchar and use the
PopplerDest object instead of the name on the find_link_dest and find_link_page
funcs.

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


More information about the Poppler-bugs mailing list