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

Calling close multiple times causes a crash

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.2.1
    • Affects Version/s: 1.2.0
    • Component/s: Java binding
    • None

      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.

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

              Created:
              Updated:
              Resolved: