[Poppler-bugs] [Bug 47063] New: logic error in Rendition parsing code

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 7 09:20:06 PST 2012


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

             Bug #: 47063
           Summary: logic error in Rendition parsing code
    Classification: Unclassified
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: tobias.koenig at kdab.com


Created attachment 58128
  --> https://bugs.freedesktop.org/attachment.cgi?id=58128
Patch that fixes MediaRendition parsing

The parsing code for MediaRendition contains an logic error which causes valid
media rendition objects to be marked as invalid ones.

The PDF references says in Table 9.6: "P dictionary (Required if C is not
present, otherwise optional)."

Or in other words: if (!C && !P) -> error
but the current implementation does: if (!P && C) -> error

The attached patch fixes this.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list