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

StackOverflowError (PDColorSpace.java:224)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.24
    • None
    • PDModel
    • None

    Description

      We received a document in our production system that throws a StackOverFlowError.  Looking at the code, it appears as though it may have been introduced with a fix for PDFBOX-4833.

      Unfortunately, we do not generate the PDFs ourselves and our documents contain sensitive information so I am unable to provide the example.  I can confirm, however, that I was able to open in Acrobat Reader and that the page has one area of highlighted text and 3 links (one of which is an email).

       

      java.lang.StackOverflowError
      at org.apache.pdfbox.util.SmallMap.containsKey(SmallMap.java:113)
      at org.apache.pdfbox.cos.COSDictionary.containsKey(COSDictionary:1459)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:224)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:227)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:227)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:227)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:227)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:227)
      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:227)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              John Petersam John Petersam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: