Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-322

Calling close multiple times causes a crash

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 1.2.1
    • 1.2.0
    • Java binding
    • None

    Description

      The MongoCryptImpl#close method isn't guarded:

          @Override
          public void close() {
              mongocrypt_destroy(wrapped);
              closed = true;
          }
      

      So each call to close() will try to destroy the mongocrypt_t object.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: