Uploaded image for project: 'SoftHSM'
  1. SoftHSM
  2. SOFTHSM-93

Invalid object recycling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0a2
    • Fix Version/s: 2.0.0b1
    • Component/s: None
    • Labels:
      None

      Description

      Some of the operations in Session.cpp will recycle the wrong object. It recycles the incoming object and not the object stored in the session. Replace "recycle(object)" with "recycle(this->object)".

      The recycling will probably not happen because the session is usually cleaned up using Session::resetOp() before calling any of these operations.

      Session::setMacOp()
      Session::setAsymmetricCryptoOp()
      Session::setSymmetricCryptoOp()
      Session::setPublicKey()
      Session::setPrivateKey()
      Session::setSymmetricKey()

        Attachments

          Activity

            People

            Assignee:
            rickard Rickard Bellgrim
            Reporter:
            rickard Rickard Bellgrim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: