-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Summary
Dropping a QE-encrypted collection using mongoc_collection_drop(coll, NULL) results in a segmentation fault if any of the associated state collections (eg. ESC, ECC, and ECOC) do not exist. The cause is a NULL dereference on the error pointer in drop_with_opts_with_encryptedFields() when checking whether the attempt to drop the state collection failed with a MONGOC_SERVER_ERR_NS_NOT_FOUND.
Environment
libmongoc v1.22.1, compiled with -DENABLE_CLIENT_SIDE_ENCRYPTION=ON