-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Client Side Encryption
-
(copied to CRM)
This issue is easily reproducible and I can supply a sample program on request. Triggering conditions are creating a MongoClient for CSFLE, adding AutoEncryptionSettings, connecting to some MongoDB and doing something (it does not need to actually involve any encryption), closing the MongoClient, then closing it again. The second close causes a double free exception, and depending on your environment, can cause a crash dump or heap corruption error.
If the MongoClient is not using AutoEncryption settings, you can close it twice with no ill effects.
Driver version is 4.2.3 (sync), mongodb-crypt version is 1.2.0.
- related to
-
MONGOCRYPT-322 Calling close multiple times causes a crash
- Closed