[Poppler-bugs] [Bug 32890] New: setjmp is missing in DCTStream::init()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 6 19:10:02 PST 2011


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

           Summary: setjmp is missing in DCTStream::init()
           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: ueno at unixuser.org


Created an attachment (id=41735)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=41735)
patch to call setjmp before jpeg_create_decompress()

Kouhei Sutou noticed that DCTStream::init() does not setjmp before calling
jpeg_create_decompress(), which may call error_exit in exceptional cases and
cause longjmp with an uninitialized jmp_buf.

I may be paranoiac here, but anyway I'm attaching a patch.

-- 
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