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

Limit the CMap-cache to external CMaps

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: PDModel
    • Labels:
      None

      Description

      Antoni Mylka found a potential memory leak within the class PDFont [1]
      A static map is used to cache all processed CMaps, which leads after while to a huge amount of allocated memory.

      IMO it doesn't make sense to cache embedded CMaps as they are only needed within the font embedding them and those CMaps are already stored in the variable "cmap". We should limit the cache to external CMaps like those which are bundled with pdfbox.

      [1] http://markmail.org/message/zwhd3as67vpg7vbb

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                lehmi Andreas Lehmkühler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: