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

Stack overflow in PDColorSpace.create()

    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

        1. bug_color_space.pdf
          9.93 MB
          Maison

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: