Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2283

platform security: m_permissions memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • framework.security-1.0.0
    • None
    • Framework Security
    • None

    Description

      Constant growth of memory using platform security 1.0.0 results in heap overflow as memory usage incerases with permission checks.

      Having a look at it I found two problems, for which I can submit a patch:

      • a value from m_permissions is never retrieved, as the PemissionsInfo Array is never equals to an existing key
        Solution: invoke get with an instance of Entry, change Entry.equals to check for deep equality of array-entries
      • as the Persmissions instance kept as (non-weak) reference in the m_permissions values references the PermissionInfo[] key-entry, none of them can be garbage collected. As a result the size of m_permissions constantly grows

      Attachments

        Activity

          People

            Unassigned Unassigned
            reto Reto Gmür
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: