Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5315

Stack overflow in PDColorSpace.create()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.20, 2.0.21, 2.0.22, 2.0.23, 2.0.24
    • 2.0.25, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      The fix of PDFBOX-4833 (handling of dictionary with /ColorSpace entry) introduces an infinite recursion bug in case the referenced dictionary is the color space itself.

      Extract of a pdf that triggers the bug (see attachment):

      18 0 obj
      <</Type/XObject/Subtype/Image/Width 2794/Height 928/SMask 3 0 R/Length 13428/BitsPerComponent 8/Filter/FlateDecode/ColorSpace 18 0 R>>

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tilman Tilman Hausherr
            momaison Maison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment